File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,14 @@ PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}"
3232go version
3333
3434if [[ " $1 " = " -install" ]]; then
35- # Check for module support
36- if go help mod >& /dev/null; then
37- # Install the pinned versions as defined in module tools.
38- pushd ./test/tools
39- go install \
40- golang.org/x/lint/golint \
41- golang.org/x/tools/cmd/goimports \
42- honnef.co/go/tools/cmd/staticcheck \
43- github.com/client9/misspell/cmd/misspell
44- popd
45- else
46- # Ye olde `go get` incantation.
47- # Note: this gets the latest version of all tools (vs. the pinned versions
48- # with Go modules).
49- go get -u \
50- golang.org/x/lint/golint \
51- golang.org/x/tools/cmd/goimports \
52- honnef.co/go/tools/cmd/staticcheck \
53- github.com/client9/misspell/cmd/misspell
54- fi
35+ # Install the pinned versions as defined in module tools.
36+ pushd ./test/tools
37+ go install \
38+ golang.org/x/lint/golint \
39+ golang.org/x/tools/cmd/goimports \
40+ honnef.co/go/tools/cmd/staticcheck \
41+ github.com/client9/misspell/cmd/misspell
42+ popd
5543 if [[ -z " ${VET_SKIP_PROTO} " ]]; then
5644 if [[ " ${TRAVIS} " = " true" ]]; then
5745 PROTOBUF_VERSION=3.14.0
You can’t perform that action at this time.
0 commit comments