Allow non-root cleanup of checksum test cache #3

Merged
dfritz merged 1 commits from fix/private-module-test-cleanup into main 2026-11-14 04:52:06 +00:00
Owner

The native checksum test downloaded a module into a read-only temporary cache, causing cleanup to fail when the test ran as a normal user. Set -modcacherw only for that subprocess and its isolated cache so cleanup succeeds; the tampered-module checksum assertion is unchanged.

Validation: Go 1.27 native race tests and Python canonical-export/archive tests pass. Independent adversarial review cleared the change. This unblocks non-root service validation without modifying generated consumer copies.

The native checksum test downloaded a module into a read-only temporary cache, causing cleanup to fail when the test ran as a normal user. Set `-modcacherw` only for that subprocess and its isolated cache so cleanup succeeds; the tampered-module checksum assertion is unchanged. Validation: Go 1.27 native race tests and Python canonical-export/archive tests pass. Independent adversarial review cleared the change. This unblocks non-root service validation without modifying generated consumer copies.
dfritz added 1 commit 2026-11-14 04:50:10 +00:00
Keep temporary module caches removable by non-root tests
Private module tooling / contract (pull_request) Successful in 55s
6a0e073ed3
dfritz merged commit 59b36d7a3c into main 2026-11-14 04:52:06 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: action/image-build#3