fix(worker): install the .githooks cache gate before pre-commit #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
riley/codetether-agent!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/worker-hook-install-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Live bug from PR #1:
pre-commit install --install-hooksran first and, in riley/spotlessbinco (default_install_hook_types: [pre-commit, post-commit]), wrote a generated.git/hooks/post-commit.install-pre-push-cache-gate.shownspost-commitandpre-pushfrom.githooks/and refuses a differing hook, so every spotlessbinco code task was refused..githooks/does not own (--hook-type pre-commit, pluspost-commitwhen declared and not owned).File generated by pre-commit); other custom hooks still make the gate refuse..githooks/pre-push, unchanged.Validation (local):
cargo fmt --checkclean;cargo test -p codetether-worktree -p codetether-a2a-worker-coreexit 0 (4 new install-order tests pass, existing pass).cargo clippy --no-deps -D warningsfails on pre-existing findings in untouched files only (6 empty_line_after_doc_comments in codetether-worktree; with that lint allowed, 8 findings in 3 untouched worker-core files); 0 findings in touched files.