-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.0.0] Can't load from
@bazel_tools//tools/jdk
.bzl
files from m…
…odule extension (#20018) Since Bazel now forwards many `.bzl` symbols under `@bazel_tools//tools/jdk` to `@rules_java`, `@bazel_tools` needs to use its proper repo mapping when resolving `.bzl` loads, otherwise loading these symbols will fail from `.bzl` files loaded transitively during module extension evaluation. The only exception this is when loading a repo rule that can host a Bazel module, recognized by the package `@bazel_tools//tools/build_defs/repo`. The full repo mapping of `@bazel_tools` isn't available at this point, so we use a fixed mapping that only contains `bazel_tools` itself. Fixes #20000 Closes #20006. Commit 5f92b9d PiperOrigin-RevId: 578612514 Change-Id: Icd50098f5ff8b4bd3ea21574a7c1d3fa4ed8611e Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
- Loading branch information
Showing
2 changed files
with
41 additions
and
9 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
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