Repository navigation
ci: build with Go 1.27.3; gitignore dist/ so release binaries are not +dirty - #1316
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… +dirty Moves every CI/release Go pin 1.26.10 -> 1.27.3 (go.mod stays go 1.26.0). Adds /dist/ to .gitignore and TestReleaseBuildLeavesTheTreeClean, which probes every path a release build writes into the checkout (discovered from .goreleaser.yaml) and fails if git status reports any. Fixes #1266 Refs spore-host/spore-host#609
scttfrdmn
force-pushed
the
ci/go-1.27.3-dirty
branch
from
October 26, 2026 04:39
faa0113 to
f09594b
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves spawn's CI and release Go pin from 1.26.10 to 1.27.3, and fixes the
+dirtystamp on release binaries.Fixes #1266
Refs spore-host/spore-host#609
Go 1.27.3
actions/setup-gogo-version1.26.10 -> 1.27.3 everywhere it is pinned: ci.yml (Test, Lint, Test (Windows), E2E Tier 0), release.yaml, security.yml. No other place pins a toolchain (no Dockerfile, notoolchaindirective, nothing in the Makefile or scripts).go 1.26.0in every go.mod is unchanged, so downstream importers are not forced onto 1.27.Pinned tools, checked under
GOTOOLCHAIN=go1.27.3(nothing needed a bump):staticcheck ./...: 0 findingsmake lint: 0 issues in all 10 modulesgo install, so it is built by the job's Go)I ran the darwin-arm64 binaries from the same staticcheck and golangci-lint releases. For the linux-amd64 binaries CI uses, I only read their build info.
+dirty (#1266)
.gitignorenow ignores/dist/.TestReleaseBuildLeavesTheTreeClean(release_tree_clean_test.go):.goreleaser.yamlto find every path a release writes into the checkout: thedist:directory (GoReleaser's default isdist, at top level and nested) and the-oandzipoutputs of eachbefore:hook, resolved against the hook'scd.git status --porcelain --untracked-files=allreports none of them. It removes only the probes it created.go buildwithout-o.Gate evidence:
.gitignorethe test fails. It reports?? dist/artifacts.jsonand?? dist/spawn_linux_amd64_v1/probe.dist/artifacts.json dist/spawn_linux_amd64_v1/probe lambda/ttl-reaper/build/bootstrap lambda/ttl-reaper/ttl-reaper_lambda_linux_arm64.zip.lambda/*/build/from .gitignore. The test fails with?? lambda/ttl-reaper/build/bootstrap, so the before-hook outputs are really covered (they are ignored today).-o build/bootstrapfrom the hook. The test fails with "go buildwithout -o; cannot tell where it writes".dist/artifacts.json, building./cmd/spored:v0.145.0+dirtyandvcs.modified=true;vcs.modified=false;vcs.modified=false.Local checks (GOTOOLCHAIN=go1.27.3)
make check: steps 1 to 6 pass (gofmt, vet, vet per release GOOS, staticcheck, golangci-lint, hermetic short tests, the nested modules, tidy).check-build-tags, fails because of the/private/tmppaths. It fails the same way on unmodified origin/main under both go1.27.3 and go1.26.10.make lint: 0 issues.semgrep scan --config=auto --error .: clean.