Skip to content

Commit 80479b6

Browse files
authored
Merge pull request #590 from yurrriq/govet-change-directory
fix(govet): change to dir before running
2 parents fa46664 + d1deac1 commit 80479b6

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)