Skip to content

Commit 58312fa

Browse files
committed
[make]ignore replace line in force-bump target
We should not try to automatically bump a dependency that has a replace line in go.mod and the existing make target was broken if such line was present. So those go.mod lines are ignored
1 parent 4642d04 commit 58312fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ vet: gowork ## Run go vet against code.
150150

151151
.PHONY: force-bump
152152
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 \
153+
for dep in $$(cat go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
154154
go get $$dep@main ; \
155155
done
156-
for dep in $$(cat apis/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator' | awk '{print $$1}'); do \
156+
for dep in $$(cat apis/go.mod | grep openstack-k8s-operators | grep -vE -- 'indirect|openstack-operator|^replace' | awk '{print $$1}'); do \
157157
cd ./apis && go get $$dep@main && cd .. ; \
158158
done
159159

0 commit comments

Comments
 (0)