Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: Reduce the amount of vendoring calls #2670

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,11 @@ codegen: | protogen
protogen: protoc-gen-go-tetragon ## Generate code based on .proto files.
# Need to call vendor twice here, once before and once after codegen the reason
# being we need to grab changes first plus pull in whatever gets generated here.
$(MAKE) vendor
$(MAKE) -C api vendor
$(MAKE) -C api
$(MAKE) vendor
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify

.PHONY: protoc-gen-go-tetragon
protoc-gen-go-tetragon:
Expand All @@ -368,15 +370,18 @@ generate: | crds
crds: ## Generate kubebuilder files.
# Need to call vendor twice here, once before and once after generate, the reason
# being we need to grab changes first plus pull in whatever gets generated here.
$(MAKE) vendor
$(MAKE) -C pkg/k8s/
$(MAKE) vendor
$(MAKE) -C pkg/k8s vendor
$(MAKE) -C pkg/k8s
$(MAKE) -C pkg/k8s vendor
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify

.PHONY: vendor
vendor: ## Tidy and vendor Go modules.
$(MAKE) -C ./api vendor
$(MAKE) -C ./pkg/k8s vendor
$(MAKE) -C ./contrib/tetragon-rthooks vendor
$(MAKE) -C api vendor
$(MAKE) -C pkg/k8s vendor
$(MAKE) -C contrib/tetragon-rthooks vendor
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify
Expand Down
Loading