Skip to content

Commit c772c8f

Browse files
committed
Change pre commit hook comand to go install
1 parent 560ea46 commit c772c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/git-hooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
function go_imports() {
66
if ! type goimports &> /dev/null; then
77
echo "Installing goimports"
8-
go get golang.org/x/tools/cmd/goimports
8+
go install golang.org/x/tools/cmd/goimports
99
fi
1010

1111
# Formats each file that was changed.

0 commit comments

Comments
 (0)