go imports hook passes on command not found
simonklb opened this issue · 0 comments
simonklb commented
% pre-commit run --files main.go -v
...
go imports...............................................................Passed
- hook id: go-imports
- duration: 0.01s
../run-go-imports.sh: line 8: goimports: command not found
It's likely that this is true for other hooks as well. A simple fix would be to add -o pipefail
to the script.