-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #134: v2.0.1 RC1 Cherry Picks
- Loading branch information
1 parent
74f5ce8
commit 1c05d10
Showing
8 changed files
with
246 additions
and
281 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,8 @@ mkfile_dir := $(shell cd $(shell dirname $(mkfile_path)); pwd) | |
### | ||
|
||
TOOLS_DESTDIR ?= $(GOPATH)/bin | ||
|
||
GOLANGCI_LINT = $(TOOLS_DESTDIR)/golangci-lint | ||
GOIMPORTS = $(TOOLS_DESTDIR)/goimports | ||
RUNSIM = $(TOOLS_DESTDIR)/runsim | ||
GOLANGCI_LINT = $(TOOLS_DESTDIR)/golangci-lint | ||
RUNSIM = $(TOOLS_DESTDIR)/runsim | ||
|
||
all: tools | ||
|
||
|
@@ -55,18 +53,23 @@ tools-stamp: $(GOIMPORTS) $(RUNSIM) | |
touch $@ | ||
|
||
$(GOLANGCI_LINT): $(mkfile_dir)/install-golangci-lint.sh | ||
bash $(mkfile_dir)/install-golangci-lint.sh $(TOOLS_DESTDIR) $(GOLANGCI_LINT_VERSION) $(GOLANGCI_LINT_HASHSUM) | ||
|
||
$(GOIMPORTS): | ||
go get golang.org/x/tools/cmd/[email protected] | ||
|
||
@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 | ||
$(RUNSIM): | ||
go get github.com/cosmos/tools/cmd/runsim/ | ||
@echo "Installing runsim..." | ||
@(cd /tmp && go get github.com/cosmos/tools/cmd/[email protected]) | ||
|
||
golangci-lint: $(GOLANGCI_LINT) | ||
|
||
tools-clean: | ||
rm -f $(GOIMPORTS) $(GOLANGCI_LINT) | ||
rm -f $(GOLANGCI_LINT) | ||
rm -f $(RUNSIM) | ||
rm -f tools-stamp | ||
|
||
.PHONY: all tools tools-clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters