Skip to content

Commit

Permalink
Adding protobuf_version.bzl to get updated version in python script
Browse files Browse the repository at this point in the history
  • Loading branch information
deannagarcia committed Jun 25, 2021
1 parent 611a08e commit 66d26f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ def UpdateRuby():
' s.version = "%s"' % GetFullVersion(rc_suffix = '.rc.'),
line))

def UpdateBazel():
RewriteTextFile('protobuf_version.bzl',
lambda line : re.sub(
r"^PROTOBUF_VERSION = '.*'$",
"PROTOBUF_VERSION = '%s'" % GetFullVersion(),
line))


UpdateConfigure()
UpdateCsharp()
Expand All @@ -375,3 +382,4 @@ def UpdateRuby():
UpdatePhp()
UpdatePython()
UpdateRuby()
UpdateBazel()

0 comments on commit 66d26f3

Please sign in to comment.