chore(hooks): run stop checks with the rustup toolchain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-21 14:14:44 +02:00
1 parent 30d58a0166
commit 3266ddda3a
1 file changed
+2
+2
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
# Stop hook: lint + tests must pass before the turn ends (exit 2 blocks).
# Prefer the rustup toolchain over any distro-packaged cargo.
[ -d "$HOME/.cargo/bin" ] && PATH="$HOME/.cargo/bin:$PATH"
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 0
fail() { echo "$1 failed:" >&2; echo "$2" | tail -40 >&2; exit 2; }
if [ -f Cargo.toml ]; then