Repository navigation
Conversation
…622) parts.yml and compat.yml each repeated internal/build's part pins in a --pins list, and #656 had to add sparse in three places. A pin added to internal/build and missed in a workflow is a bump that does not rebuild the part, and nothing fails. `changed --part <part>` reads the part's pins and paths, with those of the parts it is made with, from internal/build.Parts, so a workflow names the part and only the paths it adds. --pins stays for codeql.yml's patched trees, which are not parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oot build ignored (#622) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
A bump of any pin a part is built from has to rebuild that part. parts.yml and compat.yml kept their own copy of each part's pins in a
--pinslist, so a pin added tointernal/buildand missed in a workflow (Docker's six in #609,sparsethree times in #656) silently kept the old build. Closes #622.What
spin-machine-dev changed --part <part>takes the part's pins and paths, and those of the parts it is made with (build.Plan), frominternal/build.Parts. Positional paths are only what a workflow adds (go.mod, the workflow itself, compat.yml's checks).--pinsstays for a check that is not a part: codeql.yml's patched trees, whose list repeatsinternal/patched(follow-up issue below).Verified
TestChangedSaysWhetherAPartBuildscommits a docker-ce pin change and an e2fsprogs/ change against a base and asserts--part imagebuilds and--part kerneldoes not. The second reaches the image only through its Needs.go tool task lintand the package tests pass locally.🤖 Generated with Claude Code