From 10961d04497f604cd63a3a510a53f9d77844903c Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 4 Jul 2022 21:19:17 +0200 Subject: [PATCH] fix: use go install instead of go get in makefile (#12435) --- .github/workflows/test.yml | 2 +- contrib/devtools/Makefile | 18 +++++------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d9ceb298871..f67504bcc789 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: run: go version - name: install tparse run: | - export GO111MODULE="on" && go get github.com/mfridman/tparse@v0.8.3 + go install github.com/mfridman/tparse@v0.8.3 - uses: actions/cache@v2.1.6 with: path: ~/go/bin diff --git a/contrib/devtools/Makefile b/contrib/devtools/Makefile index 2e3741fd852f..f8a5de4edd37 100644 --- a/contrib/devtools/Makefile +++ b/contrib/devtools/Makefile @@ -57,28 +57,20 @@ tools-stamp: statik runsim # in a row. touch $@ -# Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go get" command ignores the -mod option and will polute the -# go.{mod, sum} files. -# -# ref: https://github.com/golang/go/issues/30515 +# Install the runsim binary statik: $(STATIK) $(STATIK): @echo "Installing statik..." - @(cd /tmp && go get github.com/rakyll/statik@v0.1.6) + @go install github.com/rakyll/statik@v0.1.6 -# Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go get" command ignores the -mod option and will polute the -# go.{mod, sum} files. -# -# ref: https://github.com/golang/go/issues/30515 +# Install the runsim binary runsim: $(RUNSIM) $(RUNSIM): @echo "Installing runsim..." - @(cd /tmp && go get github.com/cosmos/tools/cmd/runsim@v1.0.0) + @go install github.com/cosmos/tools/cmd/runsim@v1.0.0 tools-clean: rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM) rm -f tools-stamp -.PHONY: tools-clean statik runsim +.PHONY: tools-clean statik runsim \ No newline at end of file