@@ -2,10 +2,10 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
22COMMIT := $(shell git log -1 --format='% H')
33APPNAME := example
44
5- # don't override user values
5+ # do not override user values
66ifeq (,$(VERSION ) )
77 VERSION := $(shell git describe --exact-match 2>/dev/null)
8- # if VERSION is empty, then populate it with branch's name and raw commit hash
8+ # if VERSION is empty, then populate it with branch name and raw commit hash
99 ifeq (,$(VERSION))
1010 VERSION := $(BRANCH ) -$(COMMIT )
1111 endif
@@ -63,10 +63,11 @@ install:
6363# ## Protobuf ###
6464# #################
6565
66- # Use this proto-image if you do not want to use Ignite for generating proto files
67- protoVer =0.15.1
68- protoImageName =ghcr.io/cosmos/proto-builder:$(protoVer )
69- protoImage =$(DOCKER ) run --rm -v $(CURDIR ) :/workspace --workdir /workspace $(protoImageName )
66+ # Use this target if you do not want to use Ignite for generating proto files
67+
68+ proto-deps :
69+ @echo " Installing proto deps"
70+ @echo " Proto deps present, run 'go tool' to see them"
7071
7172proto-gen :
7273 @echo " Generating protobuf files..."
@@ -78,18 +79,13 @@ proto-gen:
7879# ## Linting ###
7980# ################
8081
81- golangci_lint_cmd =golangci-lint
82- golangci_version =v1.61.0
83-
8482lint :
8583 @echo " --> Running linter"
86- @go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version )
87- @$(golangci_lint_cmd ) run ./... --timeout 15m
84+ @go tool github.com/golangci/golangci-lint/cmd/golangci-lint run ./... --timeout 15m
8885
8986lint-fix :
9087 @echo " --> Running linter and fixing issues"
91- @go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version )
92- @$(golangci_lint_cmd ) run ./... --fix --timeout 15m
88+ @go tool github.com/golangci/golangci-lint/cmd/golangci-lint run ./... --fix --timeout 15m
9389
9490.PHONY : lint lint-fix
9591
@@ -103,7 +99,7 @@ govet:
10399
104100govulncheck :
105101 @echo Running govulncheck...
106- @go install golang.org/x/vuln/cmd/govulncheck@latest
102+ @go tool golang.org/x/vuln/cmd/govulncheck@latest
107103 @govulncheck ./...
108104
109105.PHONY : govet govulncheck
0 commit comments