Repository navigation
fix(init-workspace): read flake pin from the real input line, not the doc comment - #1113
Merged
Merged
Conversation
…doc-comment pin Cover the #1110 defect: the #1093 skew-warning pin extractor matches the doc-comment example line (`?ref=<tag>`) that ships in the standard-layout flake.nix before the real input line, so `head -n1` reports `<tag>` and the warning false-fires even on an aligned pin. Seed a fixture flake.nix carrying both the doc-comment example and a real pin. Refs: #1110
… doc comment The #1093 skew-warning pin extractor matched the doc-comment example line (`# vigos.url = "github:vig-os/devkit?ref=<tag>";`) that ships above the real input in the standard-layout flake.nix, and `head -n1` picked it — reporting the literal `<tag>` and false-firing even when the consumer's pin already matched the target, violating the feature's "matching pin stays silent" contract. Anchor the grep on `^[[:space:]]*vigos.url` so only the real (non-comment) input line is read. Found during 1.2.1-rc1 verification on commit-action. Refs: #1110
This was referenced Jul 15, 2026
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.
rc1 finding
Found during 1.2.1-rc1 verification on the
commit-actionconsumer: the #1093 flake-pin /DEVKIT_VERSIONskew warning (new in 1.2.1) read the pinnedvigosref from the wrong line of the consumerflake.nix.The standard-layout
flake.nixships a doc-comment example line(
# vigos.url = "github:vig-os/devkit?ref=<tag>";) above the real input line. The unanchored extractor matched the comment first, andhead -n1picked it. Consequences:<tag>instead of the real value;<tag>never equals a realDEVKIT_VERSION, the warning false-fired even when the consumer's pin already matched the target — violating the changelog contract "a floating (unpinned) input or a matching pin stays silent". It never wrongly stays silent, so severity is quality/noise, but it defeats the feature's contract.Fix
Anchor the grep on
^[[:space:]]*vigos\.urlso only the real (non-comment) input line is read (the doc-comment starts with#, so the anchor skips it). One-line change inassets/init-workspace.sh.Test evidence (TDD)
New fixture flake.nix carries BOTH the
?ref=<tag>doc-comment and a real pin, mirroring the shipped template:pinned vigos flake input is still <tag>reported; aligned-pin case false-fired.1.1.0reported, aligned pin1.2.0stays silent.Changelog
Amends the frozen
## [1.2.1] - TBD#1093 entry with a sub-bullet noting the pin is now read from the real input line, not the doc comment.Issue closure
Refs: #1110.Closes #only auto-fires on default-branch (main) merges here, so #1110 will be closed manually after rc2 verification.Refs: #1110