Skip to content

chore(hooks): use Hermit just for pre-push#1888

Draft
brow wants to merge 1 commit into
mainfrom
hermetic-pre-push-tools
Draft

chore(hooks): use Hermit just for pre-push#1888
brow wants to merge 1 commit into
mainfrom
hermetic-pre-push-tools

Conversation

@brow

@brow brow commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What changed?

The repository pre-push commands now invoke bin/just rather than a bare just, ensuring each recipe runs through Buzz's Hermit-pinned tools.

Pre-commit commands are intentionally unchanged and can be handled separately.

Why?

A bare just can resolve outside the repository toolchain when Hermit is not already active. The checked-in proxy makes pre-push validation deterministic across developer environments.

How is it tested?

  • bin/lefthook dump resolves all four pre-push commands to bin/just.
  • Targeted bin/lefthook run pre-push --command rust-tests --force --no-tty passed.
  • A real git push passed all repository pre-push commands: Rust, desktop, desktop Tauri, and mobile.
  • From a scrubbed environment with PATH=/usr/bin:/bin:/opt/homebrew/bin and no incoming Flutter, bin/just mobile-test passed all 482 tests; its child process resolved Hermit bin/flutter at Flutter 3.41.7.
  • bin/just --version resolved the checked-in .just-1.46.0.pkg proxy; bin/rustc --version and bin/cargo --version resolved Rust 1.95.0.

Before/after images are not applicable because this only changes local hook tool selection and has no user-visible UI.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
@brow

brow commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@brow brow changed the title chore(hooks): use Hermit just for pre-push chore(hooks): use Hermit just for pre-push Jul 15, 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