Commit ae4cad3f authored by zramsay's avatar zramsay

make: use correct location for [test_go_megacheck]

License: MIT
Signed-off-by: default avatarZach Ramsay <zach.ramsay@gmail.com>
parent 0b584587
...@@ -66,13 +66,6 @@ include $(dir)/Rules.mk ...@@ -66,13 +66,6 @@ include $(dir)/Rules.mk
# -------------------- # # -------------------- #
# core targets # # core targets #
# -------------------- # # -------------------- #
PACKAGES_NOVENDOR := $(shell go list github.com/ipfs/go-ipfs/... | grep -v /Godeps/)
megacheck:
@go get honnef.co/go/tools/cmd/megacheck
@for pkg in ${PACKAGES_NOVENDOR}; do megacheck "$$pkg"; done
.PHONY: megacheck
build: $(TGT_BIN) build: $(TGT_BIN)
.PHONY: build .PHONY: build
...@@ -149,6 +142,7 @@ help: ...@@ -149,6 +142,7 @@ help:
@echo ' test_go_short' @echo ' test_go_short'
@echo ' test_go_expensive' @echo ' test_go_expensive'
@echo ' test_go_race' @echo ' test_go_race'
@echo ' test_go_megacheck' - Run the `megacheck` vetting tool
@echo ' test_sharness_short' @echo ' test_sharness_short'
@echo ' test_sharness_expensive' @echo ' test_sharness_expensive'
@echo ' test_sharness_race' @echo ' test_sharness_race'
......
...@@ -13,6 +13,7 @@ CHECK_GO := ...@@ -13,6 +13,7 @@ CHECK_GO :=
go-pkg-name=$(shell go list $(go-tags) github.com/ipfs/go-ipfs/$(1)) go-pkg-name=$(shell go list $(go-tags) github.com/ipfs/go-ipfs/$(1))
go-main-name=$(notdir $(call go-pkg-name,$(1)))$(?exe) go-main-name=$(notdir $(call go-pkg-name,$(1)))$(?exe)
go-curr-pkg-tgt=$(d)/$(call go-main-name,$(d)) go-curr-pkg-tgt=$(d)/$(call go-main-name,$(d))
go-pkgs-novendor=$(shell go list github.com/ipfs/go-ipfs/... | grep -v /Godeps/)
go-tags=$(if $(GOTAGS), -tags="$(call join-with,$(space),$(GOTAGS))") go-tags=$(if $(GOTAGS), -tags="$(call join-with,$(space),$(GOTAGS))")
go-flags-with-tags=$(GOFLAGS)$(go-tags) go-flags-with-tags=$(GOFLAGS)$(go-tags)
...@@ -39,6 +40,11 @@ test_go_fmt: ...@@ -39,6 +40,11 @@ test_go_fmt:
.PHONY: test_go_fmt .PHONY: test_go_fmt
TEST_GO += test_go_fmt TEST_GO += test_go_fmt
test_go_megacheck:
@go get honnef.co/go/tools/cmd/megacheck
@for pkg in $(go-pkgs-novendor); do megacheck "$$pkg"; done
.PHONY: megacheck
test_go: $(TEST_GO) test_go: $(TEST_GO)
check_go_version: check_go_version:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment