Skip to content

Commit

Permalink
fixing updating go.mod for modules using pseudo-version instead of se…
Browse files Browse the repository at this point in the history
…mver (#589)

Signed-off-by: orenc1 <ocohen@redhat.com>
  • Loading branch information
orenc1 committed May 24, 2020
1 parent 42ffb74 commit 2536e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/release-bumper/release-bumper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function update_go_mod() {
MODULE_PATH=$(echo ${COMPONENTS_REPOS[$UPDATED_COMPONENT]} | cut -d "/" -f 2)
fi

sed -E -i "$EXCLUSION s/($MODULE_PATH.*)v[0-9\.]+/\1${UPDATED_VERSION}/" go.mod
sed -E -i "$EXCLUSION s/($MODULE_PATH.*)v.+/\1${UPDATED_VERSION}/" go.mod
}

main

0 comments on commit 2536e2c

Please sign in to comment.