Skip to content

Commit

Permalink
Simplify compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 11, 2024
1 parent 516737f commit fd5846d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,13 @@ def write_module_files(
overlay_archive_integrity: str,
):
module_bazel_path = os.path.join(out_dir, "MODULE.bazel")
compatibility = tag.split(".")[0]
with open(module_bazel_path, "w") as f:
f.write(
f"""module(
name = "openssl",
version = "{tag}",
compatibility_level = {tag.replace(".bcr", "").replace(".", "0")},
compatibility_level = {compatibility},
)
bazel_dep(name = "platforms", version = "0.0.10")
Expand Down

0 comments on commit fd5846d

Please sign in to comment.