Skip to content

Commit 0075790

Browse files
committed
declare BAZEL_HTTP_RULES_URLS_AS_DEFAULT_CANONICAL_ID in environ
1 parent 7642aeb commit 0075790

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

toolchain/sysroot.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@aspect_bazel_lib//lib:repo_utils.bzl", "repo_utils")
2-
load("@bazel_tools//tools/build_defs/repo:cache.bzl", "get_default_canonical_id")
2+
load("@bazel_tools//tools/build_defs/repo:cache.bzl", "DEFAULT_CANONICAL_ID_ENV", "get_default_canonical_id")
33
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "get_auth")
44

55
def _sysroot_impl(rctx):
@@ -71,6 +71,7 @@ def _sysroot_impl(rctx):
7171

7272
sysroot = repository_rule(
7373
implementation = _sysroot_impl,
74+
environ = [DEFAULT_CANONICAL_ID_ENV],
7475
attrs = {
7576
"url": attr.string(),
7677
"urls": attr.string_list(),

0 commit comments

Comments
 (0)