From 006b296c34d258fccb357c02513d44e84ebbe5a5 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 3 Dec 2017 12:04:37 +0000 Subject: [PATCH] Tidy up Makefile to get rid of vendor directory avoidance workarounds --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a2989313b..fa9c2a812 100644 --- a/Makefile +++ b/Makefile @@ -47,9 +47,9 @@ endif check: rclone ifdef GO_LATEST go vet $(BUILDTAGS) -printfuncs Debugf,Infof,Logf,Errorf ./... - errcheck $(BUILDTAGS) $(GO_FILES) + errcheck $(BUILDTAGS) ./... find . -name \*.go | grep -v /vendor/ | xargs goimports -d | grep . ; test $$? -eq 1 - go list ./... | grep -v /vendor/ | xargs -n1 golint | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1 + go list ./... | xargs -n1 golint | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1 else @echo Skipping tests as not on Go stable endif