Skip to content

Commit

Permalink
Still need go get to download, go install just install the command
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Oct 13, 2021
1 parent e38caf8 commit bcdaf89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hack/check-format.sh
Expand Up @@ -41,6 +41,7 @@ goformat_exit_code=0; test -z "$(head -n 1 "${out}")" || goformat_exit_code=1
rm -f "${out}" && touch "${out}"

# Run goimports on all the sources.
go get golang.org/x/tools/cmd/goimports
go install golang.org/x/tools/cmd/goimports
cmd=$(go list -f \{\{\.Target\}\} golang.org/x/tools/cmd/goimports)
flags="-e -w"
Expand Down
1 change: 1 addition & 0 deletions hack/check-lint.sh
Expand Up @@ -22,6 +22,7 @@ set -o pipefail
# script is located.
cd "$(dirname "${BASH_SOURCE[0]}")/.."

go get golang.org/x/lint/golint
go install golang.org/x/lint/golint

CMD=$(go list -f \{\{\.Target\}\} golang.org/x/lint/golint)
Expand Down
1 change: 1 addition & 0 deletions hack/check-staticcheck.sh
Expand Up @@ -22,6 +22,7 @@ set -o pipefail
# script is located.
cd "$(dirname "${BASH_SOURCE[0]}")/.."

go get honnef.co/go/tools/cmd/staticcheck
go install honnef.co/go/tools/cmd/staticcheck
CMD=$(go list -f \{\{\.Target\}\} honnef.co/go/tools/cmd/staticcheck)

Expand Down

0 comments on commit bcdaf89

Please sign in to comment.