Skip to content

Commit 01e41d4

Browse files
chore(Makefile): add go-mod-download.
Signed-off-by: Electronic-Waste <[email protected]>
1 parent 0de551d commit 01e41d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ endif
7979
sync-go-mod:
8080
go mod tidy -go $(GO_VERSION)
8181

82+
.PHONY: go-mod-download
83+
go-mod-download:
84+
go mod download
85+
8286
CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
8387
.PHONY: controller-gen
8488
controller-gen:
@@ -90,7 +94,7 @@ controller-gen:
9094
# 3. Generate Python SDK for Katib (hack/gen-python-sdk/gen-sdk.sh)
9195
# 4. Generate gRPC manager APIs (pkg/apis/manager/v1beta1/build.sh and pkg/apis/manager/health/build.sh)
9296
# 5. Generate Go mock codes
93-
generate: controller-gen
97+
generate: go-mod-download controller-gen
9498
ifndef HAS_MOCKGEN
9599
go install go.uber.org/mock/mockgen@$(MOCKGEN_VERSION)
96100
$(info "mockgen has been installed")

0 commit comments

Comments
 (0)