Skip to content

Commit

Permalink
update to use go install instead of go get
Browse files Browse the repository at this point in the history
go get: installing executables with 'go get' in module mode is
deprecated.
Use 'go install pkg@version' instead.
For more information, see
https://golang.org/doc/go-get-install-deprecation or run 'go help get'
or 'go help install'

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Sep 21, 2021
1 parent 6df407a commit 02960ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/build/cross/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ RUN mkdir $TMPDIR \
&& chmod o+t $TMPDIR

# Get the code coverage tool and goimports
RUN go get golang.org/x/tools/cmd/cover \
golang.org/x/tools/cmd/goimports \
RUN go install golang.org/x/tools/cmd/cover@latest \
golang.org/x/tools/cmd/goimports@@latest \
&& go clean -cache

# Cleanup a bit
Expand Down

0 comments on commit 02960ac

Please sign in to comment.