3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 04:56:03 +00:00

Fix version update script and finalize implementation

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-20 15:53:21 +00:00
parent dd04a7fedd
commit f4ad6a8f97
2 changed files with 8 additions and 7 deletions

View file

@ -42,11 +42,12 @@ def update_bazel_module(version):
with open(module_file, 'r') as f:
content = f.read()
# Update version line
# Update version line in module() block only
content = re.sub(
r'(\s+version\s*=\s*")[^"]*(".*)',
r'(module\([^)]*?\s+version\s*=\s*")[^"]*(".*?)',
r'\g<1>' + bazel_version + r'\g<2>',
content
content,
flags=re.DOTALL
)
with open(module_file, 'w') as f: