Skip to content

Commit 2702b8a

Browse files
Merge pull request #318 from dprince/force-bump
Add make force-bump target
2 parents 08026fd + 240e0c1 commit 2702b8a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

+9
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)