diff --git a/contrib/devtools/Makefile b/contrib/devtools/Makefile index ce32522fb..873cd9275 100644 --- a/contrib/devtools/Makefile +++ b/contrib/devtools/Makefile @@ -52,17 +52,28 @@ tools: statik runsim golangci-lint golangci-lint: $(GOLANGCI_LINT) $(GOLANGCI_LINT): $(mkfile_dir)/install-golangci-lint.sh - bash $(mkfile_dir)/install-golangci-lint.sh $(TOOLS_DESTDIR) $(GOLANGCI_LINT_VERSION) $(GOLANGCI_LINT_HASHSUM) + @echo "Installing golangci-lint..." + @bash $(mkfile_dir)/install-golangci-lint.sh $(TOOLS_DESTDIR) $(GOLANGCI_LINT_VERSION) $(GOLANGCI_LINT_HASHSUM) +# 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 statik: $(STATIK) $(STATIK): - @echo "Get statik" - @go get github.com/rakyll/statik + @echo "Installing statik..." + @(cd /tmp && go get 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 runsim: $(RUNSIM) $(RUNSIM): - @echo "Get runsim" - @go get github.com/cosmos/tools/cmd/runsim + @echo "Installing runsim..." + @(cd /tmp && go get github.com/cosmos/tools/cmd/runsim@v1.0.0) tools-clean: rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM)