Merge PR #5084: Sanitize tools Makefile
This commit is contained in:
parent
3aca119fd1
commit
ab81c798c6
|
@ -52,17 +52,28 @@ tools: statik runsim golangci-lint
|
||||||
|
|
||||||
golangci-lint: $(GOLANGCI_LINT)
|
golangci-lint: $(GOLANGCI_LINT)
|
||||||
$(GOLANGCI_LINT): $(mkfile_dir)/install-golangci-lint.sh
|
$(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: $(STATIK)
|
||||||
$(STATIK):
|
$(STATIK):
|
||||||
@echo "Get statik"
|
@echo "Installing statik..."
|
||||||
@go get github.com/rakyll/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: $(RUNSIM)
|
||||||
$(RUNSIM):
|
$(RUNSIM):
|
||||||
@echo "Get runsim"
|
@echo "Installing runsim..."
|
||||||
@go get github.com/cosmos/tools/cmd/runsim
|
@(cd /tmp && go get github.com/cosmos/tools/cmd/runsim@v1.0.0)
|
||||||
|
|
||||||
tools-clean:
|
tools-clean:
|
||||||
rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM)
|
rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM)
|
||||||
|
|
Loading…
Reference in New Issue