Skip to content

fix(release): mkdir dist/ before the dogfood attestation write (rc6)#269

Merged
colek42 merged 1 commit into
mainfrom
fix/release-mkdir-dist
Jun 2, 2026
Merged

fix(release): mkdir dist/ before the dogfood attestation write (rc6)#269
colek42 merged 1 commit into
mainfrom
fix/release-mkdir-dist

Conversation

@colek42
Copy link
Copy Markdown
Contributor

@colek42 colek42 commented Jun 2, 2026

rc5's dogfood cilock run failed with open ../dist/linux-amd64.attestation.json: no such file or directory → fallback (no attestation) → publish gate rejected.

Cause: rc5 moved the binary build inside the workdir (-o cilock, so the product attestor captures it). Previously go build -o ../dist/cilock had created dist/ as a side effect; now nothing did before cilock wrote the attestation to ../dist/. One-line fix: mkdir -p ../dist before the run.

Validated locally end-to-end: mkdir + run + build-in-workdir + mv writes the attestation, captures a non-empty single-leaf products tree, binary verifies against the v0.3 policy.

This is the last piece of the build→attest→verify chain (rc5 proved capture+verify+policy; rc6 fixes the dist/ precondition). After merge: re-tag v2.0.0-rc6.

rc5 dogfood failed: 'open ../dist/linux-amd64.attestation.json: no such file or
directory'. Previously `go build -o ../dist/cilock` created dist/ as a side
effect; rc5 moved the binary build INSIDE the workdir (so the product attestor
captures it), so nothing created dist/ before cilock wrote the attestation
there. The dogfood failed -> fallback (no attestation) -> publish gate rejected.

Explicitly `mkdir -p ../dist` before the run. Validated locally: the full
dogfood sequence (mkdir + run + build-in-workdir + mv) writes the attestation,
captures a non-empty single-leaf products tree, and the binary verifies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@colek42 colek42 marked this pull request as ready for review June 2, 2026 04:53
@colek42 colek42 merged commit 6380a62 into main Jun 2, 2026
20 of 21 checks passed
@colek42 colek42 deleted the fix/release-mkdir-dist branch June 2, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants