Repository navigation
fix(init-workspace): preserve tag-scheme keys across upgrades - #1123
Merged
Merged
Conversation
Read DEVKIT_TAG_PREFIX and DEVKIT_FLOATING_TAGS before the managed-template overwrite of .vig-os and write them back when set, mirroring the DEVKIT_MODULES restore. Without this an upgrade reset a consumer's release tag scheme to the empty template defaults, cutting bare tags and stalling floating tags. Refs: #1116
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.
Description
An
install.sh --forceupgrade resetDEVKIT_TAG_PREFIXandDEVKIT_FLOATING_TAGSin a consumer's.vig-osmanifest back to the empty template defaults, silently discarding consumer-set values. Action-publishing consumers setDEVKIT_TAG_PREFIX=v/DEVKIT_FLOATING_TAGS=major,minor; after an upgrade the next release cut bareX.Y.Ztags and stopped moving floating tags — a silent release-integrity regression, observed on thevig-os/commit-action1.2.0 → 1.2.1 upgrade (vig-os/commit-action#80).Closes #1116
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/init-workspace.sh: readDEVKIT_TAG_PREFIX/DEVKIT_FLOATING_TAGSfrom the consumer's.vig-osbefore the template rsync overwrite (alongside the existing MODE/identity/DEVKIT_MODULESreads) and conditionally write them back in the final persist block, mirroring theDEVKIT_MODULESpreservation pattern (feat(flake): modular capability shells — opt-in vigos capability modules (native, geant4, rust, …) on top of mkProjectShell #884). Written back bare, matching the template's unquoted form. Persist-block comment updated.tests/bats/init-workspace.bats: new regression test — scaffold, seed both keys,--forceupgrade, assert both survive (the preservation gap had no coverage, which is how this regressed).Changelog Entry
Fixed
--forceupgrades (#1116)init-workspace.shread backDEVKIT_MODE/identity/DEVKIT_MODULESbefore the managed-template overwrite of.vig-os, but notDEVKIT_TAG_PREFIXorDEVKIT_FLOATING_TAGS, so an upgrade silently reset a consumer's release tag scheme to the empty template defaults (observed cutting bare tags and stalling floating tags on the commit-action 1.2.0 → 1.2.1 upgrade).Testing
just test)Manual Testing Details
DEVKIT_TAG_PREFIXreset to empty after upgrade), then the fix turned it GREEN.tests/bats/init-workspace.bats: 199 tests, 0 failures, exit 0 (verified twice — implementation run and an independent review run).uv run pytest tests/test_release_tag_prefix.py tests/test_floating_tags.py: 9 passed.prek run --all-files: green.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Part of the commit-action-deployment bug batch (#1116, #1117, #1118, plus #1111/#1112). Merge order: this PR first (priority high), the others rebase on top.
Refs: #1116