@cryptotaxi247 / kubo / commits / ae4cad3ff

make: use correct location for [test_go_megacheck]

License: MIT Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>

zramsay committed Jun 1, 2017 at 13:51 UTC ae4cad3ff3d28d8f2f5cf8a7a29a9c9f3ce0e9b7
2 files changed +7 -7
Rules.mk
+1 -7
@@ -66,13 +66,6 @@ include $(dir)/Rules.mk
66 # -------------------- #
67 # core targets #
68 # -------------------- #
69 -PACKAGES_NOVENDOR := $(shell go list github.com/ipfs/go-ipfs/... | grep -v /Godeps/)
70 -
71 -megacheck:
72 - @go get honnef.co/go/tools/cmd/megacheck
73 - @for pkg in ${PACKAGES_NOVENDOR}; do megacheck "$$pkg"; done
74 -
75 -.PHONY: megacheck
69
70 build: $(TGT_BIN)
71 .PHONY: build
@@ -149,6 +142,7 @@ help:
142 @echo ' test_go_short'
143 @echo ' test_go_expensive'
144 @echo ' test_go_race'
145 + @echo ' test_go_megacheck' - Run the `megacheck` vetting tool
146 @echo ' test_sharness_short'
147 @echo ' test_sharness_expensive'
148 @echo ' test_sharness_race'
mk/golang.mk
+6
@@ -13,6 +13,7 @@ CHECK_GO :=
13 go-pkg-name=$(shell go list $(go-tags) github.com/ipfs/go-ipfs/$(1))
14 go-main-name=$(notdir $(call go-pkg-name,$(1)))$(?exe)
15 go-curr-pkg-tgt=$(d)/$(call go-main-name,$(d))
16 +go-pkgs-novendor=$(shell go list github.com/ipfs/go-ipfs/... | grep -v /Godeps/)
17
18 go-tags=$(if $(GOTAGS), -tags="$(call join-with,$(space),$(GOTAGS))")
19 go-flags-with-tags=$(GOFLAGS)$(go-tags)
@@ -39,6 +40,11 @@ test_go_fmt:
40 .PHONY: test_go_fmt
41 TEST_GO += test_go_fmt
42
43 +test_go_megacheck:
44 + @go get honnef.co/go/tools/cmd/megacheck
45 + @for pkg in $(go-pkgs-novendor); do megacheck "$$pkg"; done
46 +.PHONY: megacheck
47 +
48 test_go: $(TEST_GO)
49
50 check_go_version: