Repository navigation
fix(install): prune scaffold paths retired since the consumer pin - #1352
Merged
Merged
Conversation
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
install.sh --forceregenerates what the current scaffold manages andprunes what the current mode / workflow model / feature set excludes. A path an
old devkit shipped and a later devkit retired is claimed by neither, so
it rode along through every upgrade. Observed going 0.3.4 → 1.6.0
(
exo-pet/playground-carlos#9):.cursor/,.github/actions/resolve-image/,.github/workflows/renovate-changelog.ymland.hadolint.yamlall survived.renovate-changelog.ymlis the sharp one — left in place it is a liveworkflow that duplicates the
renovate-changelog-build/-commitpair thatreplaced it and calls the pruned
resolve-imageaction, so it fails at itsnext trigger rather than at upgrade time.
Change
assets/init-workspace.sh:PREVIOUS_PIN— the pin.vig-oscarried before this run rewrites it, readalongside the other manifest values, far ahead of the Smoke-test dispatch failed for 0.4.0-rc1 #852 rewrite. Legacy
DEVCONTAINER_VERSIONincluded: repos still on that key are the oldest ones,i.e. exactly the population carrying the leftovers.
retired_paths()— the cumulative manifest, one<version> <path>line perpath,
<version>being the first release that stopped shipping it:.github/workflows/renovate-changelog.yml.cursor/.claude/.hadolint.yaml.github/actions/resolve-image/resolve-toolchainversion_lt()— prerelease-aware in the direction that matters (X.Y.Z-rcNsorts below
X.Y.Z, so an rc of the retiring release is still pruned).retired_prune_paths()— the single resolver consulted by both the--previewDELETIONSreport and the post-copy prune, so the report cannever disagree with what the run does. Four gates: a present, semver-shaped
pin; the pin predates the retirement; the current template does not ship the
path; the path is not in
PRESERVE_FILES..devcontainer/justfile.base(also retired in 0.4.0) deliberately keeps itsdedicated block: its prune is mode-guarded (#738 never touches a direnv/bare
consumer's own
.devcontainer/), which a version-only manifest cannot express.The version gate is the safety property
.cursor/and.hadolint.yamlare generic names. A repo pinned at or past theretiring version was never shipped them by devkit, so an identically named path
there is the consumer's own — deleting it would be data loss. The deliberate
trade is under-pruning a repo that already upgraded past a retirement before
this fix; those are cleaned once by hand, and
docs/MIGRATION.mdsays so.Testing
tests/test_scaffold_retired_paths.py(RED → GREEN, committedseparately) — 6 tests over the real
init-workspace.sh: manifest contents,prune from an old pin, legacy
DEVCONTAINER_VERSIONpin, no prune pastthe retirement, no prune without a pin, and
--previewreporting withoutmutating.
tests/workflow_scaffold.pygained apreviewpassthrough.uv run pytest(excluding the image/integration suites, which need thecontainer) — 987 passed, 1 skipped.
just test-bats— 9 pre-existingIN_CONTAINERgithooks failures, verifiedidentical on a clean
origin/devworktree; unrelated to this change.just precommit(full suite, all files) green locally.Closes #1348