From 57e5327e97de7e896760e8f407b26b55ad7c09c9 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Fri, 7 Aug 2015 16:36:36 -0400 Subject: [PATCH] Replace `go-nyet` with `go tool vet --shadow` `go-nyet` is deprecated. --- testdata/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/testdata/Makefile b/testdata/Makefile index c299a89..cc237ba 100644 --- a/testdata/Makefile +++ b/testdata/Makefile @@ -1,8 +1,13 @@ +FILES:=$(wildcard out/*.go) + .PHONY: check -check: out/compress-memcopy.go out/compress-nomemcopy.go out/debug.go out/nocompress-memcopy.go out/nocompress-nomemcopy.go errcheck go-nyet golint - $(foreach file, $(wildcard out/*.go), errcheck $(file);) - $(foreach file, $(wildcard out/*.go), go-nyet $(file);) - $(foreach file, $(wildcard out/*.go), golint $(file);) +check: errcheck vet golint $(FILES:.go=.checked) + +out/%.checked: out/%.go + errcheck $< + go tool vet --all $< + go tool vet --shadow $< + golint $< $(GOPATH)/bin/go-bindata: $(wildcard ../*.go) $(wildcard ../**/*.go) go install ../... @@ -25,8 +30,8 @@ out/nocompress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata errcheck: go get github.com/kisielk/errcheck -go-nyet: - go get github.com/barakmich/go-nyet +vet: + go get golang.org/x/tools/cmd/vet golint: go get github.com/golang/lint/golint