File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1-
21SELF_DIR =$(dir $(lastword $(MAKEFILE_LIST ) ) )
3-
42GOOS =$(shell go env GOOS)
3+ GOPATH =$(shell go env GOPATH)
54GOARCH =$(shell go env GOARCH)
65GO_PLUGIN_BUILD =go build -buildmode=plugin -trimpath -gcflags="all=-N -l"
76PLUGINS =$(notdir $(wildcard $(ROOT_DIR ) /cmd/plugin/* ) )
@@ -78,7 +77,7 @@ fmt: ## Run 'go fmt' & goimports against code.
7877 @echo " >>>>>>>>>>>> Formating codes"
7978 @[[ -e ${GOPATH} /bin/goimports ]] || (echo " installing goimports ..." && go install golang.org/x/tools/cmd/goimports@latest)
8079 @$(FIND ) -type f | xargs gofmt -s -w
81- @$(FIND ) -type f | xargs goimports -w -local $(DTM_ROOT )
80+ @$(FIND ) -type f | xargs ${GOPATH} /bin/ goimports -w -local $(DTM_ROOT )
8281
8382.PHONY : vet
8483vet : # # Run "go vet ./...".
You can’t perform that action at this time.
0 commit comments