Repository navigation
feat(manifest): write scaffolded .vig-os pin under DEVKIT_VERSION - #971
Merged
Merged
Conversation
Flip the .vig-os version-pin assertions to the renamed DEVKIT_VERSION key and add a migration case asserting a legacy DEVCONTAINER_VERSION manifest is rewritten to DEVKIT_VERSION on a --force upgrade (the .vig-os overwrite drops the stale key). Fails against the current DEVCONTAINER_VERSION-writing scaffold. Refs: #781
… (GREEN) Flip the version-pin WRITE path to the renamed DEVKIT_VERSION key: the template manifest, init-workspace.sh writeback, the release.yml finalize step, the repo-root .vig-os, and the scaffolded devc-upgrade recipe (which read the pin via awk — a reader missed by the initial parser sweep, now dual-keyed). A --force upgrade migrates a legacy DEVCONTAINER_VERSION pin to DEVKIT_VERSION because .vig-os is overwritten from the template; the writeback sed also rewrites either key defensively. Readers still accept the legacy key (soft cutover). User-facing pin-key mentions in the scaffold ci.yml / prepare-release.yml are updated. The docker-compose .env interpolation variable stays DEVCONTAINER_VERSION in this slice. Integration assertions on the scaffolded .vig-os follow the rename; the .env / legacy-read assertions are unchanged. Refs: #781
16 of 19 tasks
Signed-off-by: Carlos Vigo <[email protected]>
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.
Summary
Stage 1 slice of #781: flip the version-pin write path to the renamed
DEVKIT_VERSIONkey. Builds on the merged dual-key reader (#968), so this is asoft cutover — readers still accept the legacy
DEVCONTAINER_VERSION.Changes
assets/workspace/.vig-os—DEVKIT_VERSION={{IMAGE_TAG}}.init-workspace.sh— writeback sed rewrites either key →DEVKIT_VERSION(migrates a stray legacy line); header comment updated.
release.ymlfinalize — writesDEVKIT_VERSIONto the repo-root.vig-os..vig-os— nowDEVKIT_VERSION=0.5.1(dogfoods the new key).justfile.devcdevc-upgrade— reader missed by the initial parser sweep(it reads the pin via
awk, notsed/grep/case); now dual-keyed, preferringDEVKIT_VERSIONwith the legacy fallback.flake.nix— comment only (the{{IMAGE_TAG}}substitution is key-agnostic).ci.yml/prepare-release.yml— user-facing pin-key mentions updated.Migration behaviour
.vig-osis not inPRESERVE_FILES, so a--forceupgrade overwrites it fromthe template (now
DEVKIT_VERSION) and the stale legacy key naturally drops. Newbats test
init-workspace migrates a legacy DEVCONTAINER_VERSION pin to DEVKIT_VERSION (#781)covers this end to end.Out of scope (later slices)
The docker-compose
.envinterpolation variable staysDEVCONTAINER_VERSION(it's the compose var, not the pin) — its rename rides the image-ref cutover (PR 2).
Testing
tests/bats/init-workspace.bats— 7 version-pin tests green (incl. migration); full file 127 green. TDD RED→GREEN.tests/bats/just.bats—devc-upgradereadsDEVKIT_VERSION, still honors legacy. Green.tests/test_integration.py— scaffolded-.vig-osassertions flipped toDEVKIT_VERSION(container tests run in CI).just precommit(full suite) — green.Refs: #781