Skip to content

Commit

Permalink
Fix makefile dep target to only download missing tools in bin/*
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirajsb committed Oct 5, 2023
1 parent 6644876 commit ab5d90a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,27 @@ vet:
clean:
rm -Rf ./model-registry internal/ml_metadata/proto/*.go internal/model/graph/models_gen.go

.PHONY: deps
deps:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(PROJECT_BIN) v1.54.2
GOBIN=$(PROJECT_BIN) go install github.com/99designs/[email protected]
bin/go-enum:
GOBIN=$(PROJECT_BIN) go install github.com/searKing/golang/tools/[email protected]

bin/protoc-gen-go:
GOBIN=$(PROJECT_BIN) go install google.golang.org/protobuf/cmd/[email protected]

bin/protoc-gen-go-grpc:
GOBIN=$(PROJECT_BIN) go install google.golang.org/grpc/cmd/[email protected]

bin/gqlgen:
GOBIN=$(PROJECT_BIN) go install github.com/99designs/[email protected]

bin/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(PROJECT_BIN) v1.54.2

bin/goverter:
GOBIN=$(PROJECT_PATH)/bin go install github.com/jmattheis/goverter/cmd/[email protected]

.PHONY: deps
deps: bin/go-enum bin/protoc-gen-go bin/protoc-gen-go-grpc bin/gqlgen bin/golangci-lint bin/goverter

.PHONY: vendor
vendor:
go mod vendor
Expand Down

0 comments on commit ab5d90a

Please sign in to comment.