Skip to content

Commit 99c8ad6

Browse files
committed
CARRY: Makefile: add merge-bot target
1 parent 8dfbbb1 commit 99c8ad6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,18 @@ modules: ## Runs go mod to ensure proper vendoring.
278278
cd $(TOOLS_DIR); go mod tidy
279279
cd $(REPO_ROOT)/hack/codegen; go work sync; go mod tidy
280280

281+
.PHONY: merge-bot
282+
merge-bot: full-vendoring generate ## Runs targets that help merge-bot to rebase downstream CAPO.
283+
284+
.PHONY: full-vendoring
285+
full-vendoring: ## Runs commands that complete vendoring tasks for downstream CAPO.
286+
go mod tidy && go mod vendor
287+
cd $(TOOLS_DIR); go mod tidy; go mod vendor
288+
cd $(REPO_ROOT)/hack/codegen; go work sync; go mod tidy; go work vendor
289+
cd $(REPO_ROOT)/openshift; go mod tidy; go mod vendor
290+
cd $(REPO_ROOT)/orc; go mod tidy; go mod vendor
291+
cd $(REPO_ROOT)/orc/hack/codegen; go work sync; go mod tidy; go work vendor
292+
281293
.PHONY: generate
282294
generate: templates generate-orc generate-controller-gen generate-codegen generate-conversion-gen generate-go generate-manifests generate-api-docs ## Generate all generated code
283295

0 commit comments

Comments
 (0)