mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 07:16:17 +00:00
chore(hooks): run stop checks with the rustup toolchain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30d58a0166
commit
3266ddda3a
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user