Skip to content

Keep main-hook through use-brew; refresh only an existing binary - #31

Merged
claybridges merged 3 commits into
mainfrom
pr/useBrewHook
Oct 22, 2026
Merged

claybridges merged 3 commits into
mainfrom
pr/useBrewHook

Conversation

@claybridges

@claybridges claybridges commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

After use-brew, the main hook would still fire on the next main update and rebuild ~/.local/bin/git-folder. That dir comes before /opt/homebrew/bin on PATH, so the dev binary would silently shadow brew again.

Now the hook only refreshes a dev binary that already exists:

  • use-dev creates ~/.local/bin/git-folder; from then on the hook keeps it current as main moves
  • use-brew links brew's copy, then deletes the dev binary, so PATH falls through to brew; a failed link leaves the dev binary in place. The hook stays installed but skips the rebuild (logged as "skipped … no dev binary")
  • main-hook:uninstall and dev:uninstall still remove the hook

So use-brew no longer uninstalls the hook.

🤖 Generated with Claude Code

@claybridges claybridges changed the title Stop use-brew from uninstalling main-hook Keep main-hook through use-brew; refresh only an existing binary Oct 22, 2026

@claybridges claybridges left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

@claybridges
claybridges merged commit b78ef08 into main Oct 22, 2026
2 checks passed
@claybridges
claybridges deleted the pr/useBrewHook branch October 22, 2026 21:20
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