Skip to content

Commit 7f8b80d

Browse files
Make -SNAPSHOT optional in peer_update_version
Found the version wasn't being set as expected for v4.3.1. (cherry picked from commit 94ec747)
1 parent 7c9336c commit 7f8b80d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

peer_update_version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def update_version(file_path, branch, sha):
3333
filedata = re.sub(
3434
# Find the version between RELEASE_VERSION tags and append the branch and SHA to it
3535
r'(?P<start><!-- RELEASE_VERSION -->\s*\n' +
36-
r'\s*<version>)(?P<version>[\d.]*)(?P<version_suffix>-SNAPSHOT).*(?P<end></version>\s*\n' +
36+
r'\s*<version>)' +
37+
r'(?P<version>[\d.]*)(?P<version_suffix>(-SNAPSHOT)?).*(?P<end>'
38+
r'</version>\s*\n' +
3739
r'\s*<!-- /RELEASE_VERSION -->)',
3840
r'\g<start>\g<version>\g<version_suffix>-' + branch + r'-' + sha + r'\g<end>', filedata)
3941

0 commit comments

Comments
 (0)