Repository navigation
fix(workspace): namespace justfile.gh git helpers to prevent consumer recipe collisions - #919
Merged
Merged
Conversation
Rename the scaffold-managed git helper recipes `log` -> `gh-log` and `branch` -> `gh-branch` so they cannot clash with a consumer's preserved justfile.project recipes on import. A collision made `just` fail to parse entirely (recipe redefined), cascading into disabling the base-recipe repair. Matches the existing `gh-issues` naming convention. Refs: #915
…ustfile-gh-recipe-namespace # Conflicts: # CHANGELOG.md # assets/workspace/.devcontainer/CHANGELOG.md
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
Fixes #915 — the scaffold-managed
justfile.ghshipped barelog/branchrecipes. A consumer whose preservedjustfile.projectalso definedlog/branchhit a hardjustparse failure after upgrade (recipe log … is redefined), makingjustunusable and silently disabling the #877 base-recipe repair. Reproduced on a real consumer (mat) both from a clean 0.3.3 base and from its 0.4.0 branch during 0.4.1-rc1 testing.Change
Renamed the shipped git-helper recipes at the SSoT root
justfile.gh:log→gh-logbranch→gh-branchmatching the existing
gh-issuesconvention, so scaffold recipes can no longer collide with arbitrary consumer recipe names. Regenerated the template (assets/workspace/.devcontainer/justfile.gh) viajust sync-workspaceand the embedded recipe listings inREADME.md/CONTRIBUTE.mdviagenerate-docs. No live internal callers referenced the old names.Consumers who scripted against the shipped
just log/just branchrecipes must switch tojust gh-log/just gh-branch. Consumers who defined their ownlog/branchrecipes now keep them without collision — which is the bug being fixed.Verification
redefinedcollision against old names; assert no barelog/branchinjustfile.gh);bats tests/bats/just.bats→ 39/39.just --listparses;just sync-workspaceself-consistent (sync-manifestgate green).prek run --all-filesgreen locally.Refs #877.