Skip to content

Commit

Permalink
Add full path to GOPATH in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic Shostak committed May 12, 2022
1 parent 01a4acb commit 5df6b0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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 .
Expand Down

0 comments on commit 5df6b0d

Please sign in to comment.