From 38113a0073ee9372a53e464ce532fefa02351558 Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Mon, 25 Nov 2024 14:29:37 +0100 Subject: [PATCH] [make]Add force-bump target to bump operator deps The new force-bump target bumps operator and lib-common dependencies of this operator by tracking the same branch from these dependencies. Related: OSPRH-8355 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index d7fa050..8114bdb 100644 --- a/Makefile +++ b/Makefile @@ -385,3 +385,13 @@ run-with-webhook: export METRICS_PORT?=8080 run-with-webhook: export HEALTH_PORT?=8081 run-with-webhook: manifests generate fmt vet ## Run a controller from your host. /bin/bash hack/run_with_local_webhook.sh + +BRANCH=main +.PHONY: force-bump +force-bump: ## Force bump operator and lib-common dependencies + for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-baremetal-operator|^replace' | awk '{print $$1}'); do \ + go get $$dep@$(BRANCH) ; \ + done + for dep in $$(cat api/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-baremetal-operator|^replace' | awk '{print $$1}'); do \ + cd ./api && go get $$dep@$(BRANCH) && cd .. ; \ + done