]> git.ekhem.eu.org Git - guix.git/commit
[hooks] pre-flight checks, surface failures, prettify
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 28 Jul 2026 07:20:42 +0000 (07:20 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Thu, 30 Jul 2026 16:01:40 +0000 (16:01 +0000)
commitc640f2d48f4d733755fc64b6a54db0abc0a6bab8
tree9ec8e3686f7ca1d3e22204a6e5ef68d76edf48b0
parentc978fe243d1ea087f1a2069d4737692ec42ffcd4
[hooks] pre-flight checks, surface failures, prettify

Every hook now checks that GUIX_BIN and required commands exist
before running.  PreToolUse hooks deny with a visible reason on
failure; other hooks emit systemMessage.  All hooks follow the
create-worktree style: copyright header, individual check blocks.

Fixed block-worktrees to not silently exit when CLAUDE_PROJECT_DIR
is unset (the hook derives proj_root from git, not that variable).

Fixed git push exemption in create-worktree to match full paths
like $HOME/.guix-profile/bin/git push.

Co-Authored-By: Claude <noreply@anthropic.com>
hooks: guix-build check for divergence from main

Exit early only when the tree is clean AND at main tip.  Warn and
stop if the branch is behind main (needs rebase).  Fall through to
queue logic when there are staged commits or a dirty tree.

Co-Authored-By: Claude <noreply@anthropic.com>
.claude/hooks/block-builds
.claude/hooks/block-worktrees
.claude/hooks/create-worktree
.claude/hooks/guix-build
.claude/hooks/guix-check
.claude/hooks/notify
.claude/hooks/status-line
.claude/settings.json