Skip to content

Commit 5df6b0d

Browse files
author
Vic Shostak
committed
Add full path to GOPATH in Makefile
1 parent 01a4acb commit 5df6b0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ clean:
44
rm -rf ./tmp coverage.out
55

66
lint:
7-
golangci-lint run ./...
7+
$(GOPATH)/bin/golangci-lint run ./...
88

99
security:
10-
gosec -quiet ./...
10+
$(GOPATH)/bin/gosec -quiet ./...
1111

1212
critic:
13-
gocritic check -enableAll ./...
13+
$(GOPATH)/bin/gocritic check -enableAll ./...
1414

1515
test: clean lint security critic
1616
go test -coverprofile=coverage.out ./...
@@ -20,11 +20,11 @@ install: test
2020
CGO_ENABLED=0 go build -ldflags="-s -w" -o $(GOPATH)/bin/cgapp ./cmd/cgapp/main.go
2121

2222
build: test
23-
goreleaser --snapshot --skip-publish --rm-dist
23+
$(GOPATH)/bin/goreleaser --snapshot --skip-publish --rm-dist
2424

2525
release: test
2626
git tag -a v$(VERSION) -m "$(VERSION)"
27-
goreleaser --snapshot --skip-publish --rm-dist
27+
$(GOPATH)/bin/goreleaser --snapshot --skip-publish --rm-dist
2828

2929
build-and-push-images: test
3030
podman build -t docker.io/koddr/cgapp:latest .

0 commit comments

Comments
 (0)