-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bazel): add MODULE.bazel files for bzlmod
Signed-off-by: Matthieu MOREL <[email protected]>
- Loading branch information
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
common --enable_bzlmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module( | ||
name = "envoy_build_tools", | ||
version = "", | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.3.0") | ||
# -- bazel_dep definitions -- # | ||
|
||
non_module_deps = use_extension("//:non_module_deps.bzl", "non_module_deps") | ||
use_repo(non_module_deps, "bazel_toolchains") | ||
|
||
bazel_toolchains_ext = use_extension("//:bazel_toolchains_ext.bzl", "bazel_toolchains_ext") | ||
use_repo(bazel_toolchains_ext, "rbe_default") |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
load("@bazel_toolchains//repositories:repositories.bzl","repositories") | ||
|
||
def _bazel_toolchains_ext_impl(ctx): | ||
repositories() | ||
|
||
bazel_toolchains_ext = module_extension(implementation = _bazel_toolchains_ext_impl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
def _non_module_deps_impl(ctx): | ||
http_archive( | ||
name = "bazel_toolchains", | ||
sha256 = "02e4f3744f1ce3f6e711e261fd322916ddd18cccd38026352f7a4c0351dbda19", | ||
strip_prefix = "bazel-toolchains-5.1.2", | ||
urls = ["https://github.com/bazelbuild/bazel-toolchains/archive/refs/tags/v5.1.2.tar.gz"], | ||
) | ||
|
||
non_module_deps = module_extension(implementation = _non_module_deps_impl) |