mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 17:03:58 +08:00
make: use correct location for [test_go_megacheck]
License: MIT Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
This commit is contained in:
8
Rules.mk
8
Rules.mk
@ -66,13 +66,6 @@ include $(dir)/Rules.mk
|
||||
# -------------------- #
|
||||
# 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)
|
||||
.PHONY: build
|
||||
@ -149,6 +142,7 @@ help:
|
||||
@echo ' test_go_short'
|
||||
@echo ' test_go_expensive'
|
||||
@echo ' test_go_race'
|
||||
@echo ' test_go_megacheck' - Run the `megacheck` vetting tool
|
||||
@echo ' test_sharness_short'
|
||||
@echo ' test_sharness_expensive'
|
||||
@echo ' test_sharness_race'
|
||||
|
@ -13,6 +13,7 @@ CHECK_GO :=
|
||||
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-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-flags-with-tags=$(GOFLAGS)$(go-tags)
|
||||
@ -39,6 +40,11 @@ test_go_fmt:
|
||||
.PHONY: 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)
|
||||
|
||||
check_go_version:
|
||||
|
Reference in New Issue
Block a user