forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix makefile dep target to only download missing tools in bin/*
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|