Skip to content

Commit d1deac1

Browse files
committed
fix(govet): change to dir before running
1 parent fa46664 commit d1deac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hooks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
28942894
script = pkgs.writeShellScript "precommit-govet" ''
28952895
set -e
28962896
for dir in $(echo "$@" | xargs -n1 dirname | sort -u); do
2897-
${hooks.govet.package}/bin/go vet ./"$dir"
2897+
${hooks.govet.package}/bin/go vet -C ./"$dir"
28982898
done
28992899
'';
29002900
in

0 commit comments

Comments
 (0)