Repository navigation
feat(workspace): upgrade a member made from a template from its own lock - #3085
Merged
Merged
Conversation
…ock, and refuse a patch outside the scope
7 tasks
4 of 10 tasks
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.
Closes #2550. Part 1 was #2610.
What it adds
chant workspace upgrade <member>from the workspace root. A member made bychant init --from <template> <dir>keeps its lock in its own directory. The command finds the member inchant.workspace.jsonby name or directory and runs the whole upgrade from that directory. A member with no lock is refused with the reason (it was not made from a template). A scope the root's lock holds is used as written, so a root lock that records a member's subtree also works.workspace-upgrade/<member>) and the proposal branch (chant/upgrade/<member>) use the member's name, so two members never share a gate. TheproposeWorkspaceUpgradeactivity goes through the same resolution.init --templatestay refused, now with the reason: no versioned source to fetch, and the merge base is the render of the chant version that wrote it.--templaterefusal; an e2e case through the real CLI and ledger; a reference-workspace case that makes a member in a copy and checks resolution.Acceptance list
workspace checkrun in the worktree before the gate (feat(workspace): chant workspace upgrade, template migrations and the propose-only activity (#2550) #2610).check(feat(workspace): chant workspace upgrade, template migrations and the propose-only activity (#2550) #2610).--full-treeledger change is on the level-0 exceptions page andlevel0-ledger.test.tsholds the subdirectory case. Upgrade on a plain project with a lock is covered by the existing e2e case; the level-0 goldens pass unchanged. No CHANGELOG entry, since no level-0 output changes.Gates
level0-goldens, reference-workspace, the workspace and activity unit tests, typecheck (31 baselined, no regressions), check-lexicons tier 1, docs prose ratchet and diataxis check.