Skip to content

Commit

Permalink
Change go get to go install
Browse files Browse the repository at this point in the history
Per Go proposal golang/go#40276
  • Loading branch information
msteffen committed Apr 23, 2021
1 parent f95324a commit 384c49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/testing/lint.sh
Expand Up @@ -20,7 +20,7 @@ done

# Update golint once a day, or if it isn't installed
if [ -z "$(find "$(command -v golint)" -mtime -1 2>/dev/null)" ]; then
go get -u golang.org/x/lint/golint
go install -u golang.org/x/lint/golint
fi

find "./src" \
Expand All @@ -36,7 +36,7 @@ fi

# Update staticcheck once a day, or if it isn't installed
if [ -z "$(find "$(command -v staticcheck)" -mtime -1 2>/dev/null)" ]; then
go get -u honnef.co/go/tools/cmd/staticcheck
go install -u honnef.co/go/tools/cmd/staticcheck
fi
staticcheck "${GIT_REPO_DIR}/..."

Expand Down

0 comments on commit 384c49d

Please sign in to comment.