Skip to content

Commit 240e0c1

Browse files
committed
Add make force-bump target
Jira: OSPRH-15738
1 parent 08026fd commit 240e0c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,15 @@ CRD_SCHEMA_CHECKER_VERSION ?= release-4.16
383383

384384
PHONY: crd-schema-check
385385
BRANCH ?= main
386+
.PHONY: force-bump
387+
force-bump: ## Force bump operator and lib-common dependencies
388+
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|mariadb-operator|^replace' | awk '{print $$1}'); do \
389+
go get $$dep@$(BRANCH) ; \
390+
done
391+
for dep in $$(cat api/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|mariadb-operator|^replace' | awk '{print $$1}'); do \
392+
cd ./api && go get $$dep@$(BRANCH) && cd .. ; \
393+
done
394+
386395
crd-schema-check: manifests
387396
INSTALL_DIR=$(LOCALBIN) CRD_SCHEMA_CHECKER_VERSION=$(CRD_SCHEMA_CHECKER_VERSION) hack/build-crd-schema-checker.sh
388397
INSTALL_DIR=$(LOCALBIN) BASE_REF="$${PULL_BASE_SHA:-$(BRANCH)}" hack/crd-schema-checker.sh

0 commit comments

Comments
 (0)