From 7b7c0c5b4d4415990ca64537f0a20e2f80c8c1e7 Mon Sep 17 00:00:00 2001 From: Lukas Piwowarski Date: Mon, 10 Aug 2026 07:41:32 -0400 Subject: [PATCH] Add gowork Makefile target required by force-bump CI workflow The shared force-bump-pull-request workflow calls `make gowork` to set up a Go workspace before running force-bump. This target was missing, causing the workflow to fail with "No rule to make target 'gowork'". Co-Authored-By: Claude Opus 4.6 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 087dde7..a27af10 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,12 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." +.PHONY: gowork +gowork: ## Generate go.work file + test -f go.work || go work init + go work use . + go work sync + .PHONY: force-bump force-bump: ## Force bump after tagging for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|lightspeed-operator|^replace|^//' | awk '{print $$1}'); do \