Skip to content

Commit 8cbbc19

Browse files
committed
[make]force-bump to take BRANCH argument
This will allow us to use the target on 18.0.0-proposed or other stable branches as well by passing the proper BRANCH argument
1 parent 58312fa commit 8cbbc19

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ vet: gowork ## Run go vet against code.
148148
go vet ./...
149149
go vet ./apis/...
150150

151+
BRANCH=main
151152
.PHONY: force-bump
152153
force-bump: ## Force bump after tagging
153154
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
154-
go get $$dep@main ; \
155+
go get $$dep@$(BRANCH) ; \
155156
done
156157
for dep in $$(cat apis/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
157-
cd ./apis && go get $$dep@main && cd .. ; \
158+
cd ./apis && go get $$dep@$(BRANCH) && cd .. ; \
158159
done
159160

160161
.PHONY: tidy

0 commit comments

Comments
 (0)