From 5df6b0d98cb0c4460d0e4f86b44871edfc15be7b Mon Sep 17 00:00:00 2001 From: Vic Shostak Date: Thu, 12 May 2022 14:48:33 +0300 Subject: [PATCH] Add full path to GOPATH in Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5062ac0..d4cab13 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,13 @@ clean: rm -rf ./tmp coverage.out lint: - golangci-lint run ./... + $(GOPATH)/bin/golangci-lint run ./... security: - gosec -quiet ./... + $(GOPATH)/bin/gosec -quiet ./... critic: - gocritic check -enableAll ./... + $(GOPATH)/bin/gocritic check -enableAll ./... test: clean lint security critic go test -coverprofile=coverage.out ./... @@ -20,11 +20,11 @@ install: test CGO_ENABLED=0 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp ./cmd/cgapp/main.go build: test - goreleaser --snapshot --skip-publish --rm-dist + $(GOPATH)/bin/goreleaser --snapshot --skip-publish --rm-dist release: test git tag -a v$(VERSION) -m "$(VERSION)" - goreleaser --snapshot --skip-publish --rm-dist + $(GOPATH)/bin/goreleaser --snapshot --skip-publish --rm-dist build-and-push-images: test podman build -t docker.io/koddr/cgapp:latest .