Skip to content

Commit

Permalink
Make bundle generation work during merges
Browse files Browse the repository at this point in the history
This is required for openshift-service-mesh#14

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
  • Loading branch information
dgn committed Apr 23, 2024
1 parent 2d2e22f commit 6b0bd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ bundle: gen helm operator-sdk ## Generate bundle manifests and metadata, then va
if (git ls-files --error-unmatch "$$csvPath" &>/dev/null); then \
if ! (git diff "$$csvPath" | grep '^[+-][^+-][^+-]' | grep -v "createdAt:" >/dev/null); then \
echo "reverting timestamp change in $$csvPath"; \
git checkout "$$csvPath"; \
git checkout "$$csvPath" || echo "failed to revert timestamp change. assuming we're in the middle of a merge"; \
fi \
fi
$(OPERATOR_SDK) bundle validate ./bundle
Expand Down

0 comments on commit 6b0bd3b

Please sign in to comment.