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:
parent
dd04a7fedd
commit
f4ad6a8f97
2 changed files with 8 additions and 7 deletions
|
@ -4,8 +4,8 @@ module(
|
||||||
bazel_compatibility = [">=7.0.0"],
|
bazel_compatibility = [">=7.0.0"],
|
||||||
)
|
)
|
||||||
|
|
||||||
bazel_dep(name = "rules_foreign_cc", version = "4.15.4")
|
bazel_dep(name = "rules_foreign_cc", version = "0.14.0")
|
||||||
bazel_dep(name = "rules_license", version = "4.15.4")
|
bazel_dep(name = "rules_license", version = "1.0.0")
|
||||||
|
|
||||||
# Enables formatting all Bazel files (.bazel, .bzl) by running:
|
# Enables formatting all Bazel files (.bazel, .bzl) by running:
|
||||||
# ```bash
|
# ```bash
|
||||||
|
@ -14,8 +14,8 @@ bazel_dep(name = "rules_license", version = "4.15.4")
|
||||||
# ```
|
# ```
|
||||||
bazel_dep(
|
bazel_dep(
|
||||||
name = "buildifier_prebuilt",
|
name = "buildifier_prebuilt",
|
||||||
version = "4.15.4",
|
version = "8.0.1",
|
||||||
dev_dependency = True,
|
dev_dependency = True,
|
||||||
)
|
)
|
||||||
|
|
||||||
bazel_dep(name = "platforms", version = "4.15.4")
|
bazel_dep(name = "platforms", version = "0.0.11")
|
||||||
|
|
|
@ -42,11 +42,12 @@ def update_bazel_module(version):
|
||||||
with open(module_file, 'r') as f:
|
with open(module_file, 'r') as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
# Update version line
|
# Update version line in module() block only
|
||||||
content = re.sub(
|
content = re.sub(
|
||||||
r'(\s+version\s*=\s*")[^"]*(".*)',
|
r'(module\([^)]*?\s+version\s*=\s*")[^"]*(".*?)',
|
||||||
r'\g<1>' + bazel_version + r'\g<2>',
|
r'\g<1>' + bazel_version + r'\g<2>',
|
||||||
content
|
content,
|
||||||
|
flags=re.DOTALL
|
||||||
)
|
)
|
||||||
|
|
||||||
with open(module_file, 'w') as f:
|
with open(module_file, 'w') as f:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue