Skip to content

fix(workspace): namespace justfile.gh git helpers to prevent consumer recipe collisions - #919

Merged
c-vigo merged 5 commits into
release/0.4.1from
bugfix/915-justfile-gh-recipe-namespace
Jul 7, 2026
Merged

c-vigo merged 5 commits into
release/0.4.1from
bugfix/915-justfile-gh-recipe-namespace

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #915 — the scaffold-managed justfile.gh shipped bare log / branch recipes. A consumer whose preserved justfile.project also defined log/branch hit a hard just parse failure after upgrade (recipe log … is redefined), making just unusable 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-log
  • branch → gh-branch

matching the existing gh-issues convention, so scaffold recipes can no longer collide with arbitrary consumer recipe names. Regenerated the template (assets/workspace/.devcontainer/justfile.gh) via just sync-workspace and the embedded recipe listings in README.md / CONTRIBUTE.md via generate-docs. No live internal callers referenced the old names.

⚠️ Migration (user-facing)

Consumers who scripted against the shipped just log / just branch recipes must switch to just gh-log / just gh-branch. Consumers who defined their own log/branch recipes now keep them without collision — which is the bug being fixed.

Verification

  • New BATS tests (reproduce the redefined collision against old names; assert no bare log/branch in justfile.gh); bats tests/bats/just.bats → 39/39.
  • just --list parses; just sync-workspace self-consistent (sync-manifest gate green).
  • Full prek run --all-files green locally.

Refs #877.

c-vigo added 5 commits July 7, 2026 17:36
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
@c-vigo
c-vigo enabled auto-merge July 7, 2026 16:07
@c-vigo
c-vigo merged commit 870a587 into release/0.4.1 Jul 7, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/915-justfile-gh-recipe-namespace branch July 7, 2026 16:13
@c-vigo c-vigo mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant