Skip to content

Commit 5284b94

Browse files
Merge pull request #1133 from gibizer/fix-force-bump
[make]force-bump fixes
2 parents 357a9af + 8cbbc19 commit 5284b94

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 4 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
153-
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator' | awk '{print $$1}'); do \
154-
go get $$dep@main ; \
154+
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
155+
go get $$dep@$(BRANCH) ; \
155156
done
156-
for dep in $$(cat apis/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator' | awk '{print $$1}'); do \
157-
cd ./apis && go get $$dep@main && cd .. ; \
157+
for dep in $$(cat apis/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
158+
cd ./apis && go get $$dep@$(BRANCH) && cd .. ; \
158159
done
159160

160161
.PHONY: tidy

0 commit comments

Comments
 (0)