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}"
32
32
go version
33
33
34
34
if [[ " $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
55
43
if [[ -z " ${VET_SKIP_PROTO} " ]]; then
56
44
if [[ " ${TRAVIS} " = " true" ]]; then
57
45
PROTOBUF_VERSION=3.14.0
You can’t perform that action at this time.
0 commit comments