diff --git a/agent/Makefile b/agent/Makefile index fc8d4fb..0e4ea2d 100755 --- a/agent/Makefile +++ b/agent/Makefile @@ -41,9 +41,9 @@ gofmt: go fmt ./... lint: gofmt - $(GOPATH)/bin/staticcheck $(PACKAGES) - $(GOPATH)/bin/golangci-lint run - $(GOPATH)/bin/gosec -quiet -no-fail ./... + $(shell go env GOPATH)/bin/staticcheck $(PACKAGES) + $(shell go env GOPATH)/bin/golangci-lint run + $(shell go env GOPATH)/bin/gosec -quiet -no-fail ./... run: go run main.go