File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ NAME = scw
3030SOURCES := $(shell find . -type f -name "* .go")
3131COMMANDS := $(shell go list ./... | grep -v /vendor/ | grep /cmd/)
3232PACKAGES := $(shell go list ./... | grep -v /vendor/ | grep -v /cmd/)
33+ REL_COMMANDS := $(subst $(GODIR ) ,./,$(COMMANDS ) )
34+ REL_PACKAGES := $(subst $(GODIR ) ,./,$(PACKAGES ) )
3335VERSION = $(shell cat .goxc.json | grep "PackageVersion" | egrep -o "([0-9]{1,}\.) +[0-9]{1,}")
3436REV = $(shell git rev-parse HEAD || git ls-remote https://github.com/scaleway/scaleway-cli | grep -F $(VERSION ) | head -n1 | awk '{print $$1}' || echo "nogit")
3537TAG = $(shell git describe --tags --always || echo $(VERSION ) || echo "nogit")
@@ -73,7 +75,7 @@ fmt: $(FMT_LIST)
7375
7476$(BUILD_LIST ) : % _build: % _fmt % _iref
7577 $(GOBUILD ) -ldflags $(LDFLAGS ) -o $(NAME ) $(subst $(GODIR ) ,./,$* )
76- $( GO ) tool vet -all=true $( PACKAGES ) $( COMMANDS )
78+ for file in $( shell find $( REL_COMMANDS ) $( REL_PACKAGES ) -depth 1 -name " *.go " ) ; do $( GO) tool vet -all=true $$ file ; done
7779$(CLEAN_LIST ) : % _clean:
7880 $(GOCLEAN ) $(subst $(GODIR ) ,./,$* )
7981$(INSTALL_LIST ) : % _install:
You can’t perform that action at this time.
0 commit comments