Add support for Bzlmod (#8494)

This commit is contained in:
Marcel
2025-01-22 01:53:46 +01:00
committed by GitHub
parent e67310bf1c
commit 0d7bf7e8a7
5 changed files with 116 additions and 7 deletions

19
extensions.bzl Normal file
View File

@@ -0,0 +1,19 @@
"""Bzlmod extensions"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
def _non_module_dependencies_impl(_ctx):
"""Non module dependencies"""
http_file(
name = "bazel_linux_x86_64",
downloaded_file_path = "bazel",
executable = True,
sha256 = "e78fc3394deae5408d6f49a15c7b1e615901969ecf6e50d55ef899996b0b8458",
urls = [
"https://github.com/bazelbuild/bazel/releases/download/6.3.2/bazel-6.3.2-linux-x86_64",
],
)
non_module_dependencies = module_extension(
implementation = _non_module_dependencies_impl,
)