diff options
author | 2018-06-21 11:55:44 -0700 | |
---|---|---|
committer | 2018-06-21 11:57:27 -0700 | |
commit | f24479d495df540bae634b5ff2dde3177585c2a3 (patch) | |
tree | ab16e9bf0c46f1f2b1ad70d6502003de553abd81 /src/main/java/com/google/devtools/build/lib/analysis/ToolchainContext.java | |
parent | 9594d5e8dc465bb4526a2f15a4b547de7e1324a7 (diff) |
Take into account repository mapping when processing labels inside BUILD files within external repositories.
For example:
a/BUILD
genrule(
name = "a",
srcs = ["@x//:x.txt"],
outs = ["result.txt"],
cmd = "echo hello > \$(location result.txt)"
)
If the main workspace file references that repository with a rule:
local_repository(
name = "other_repo",
path = "../a",
repo_mapping = {"@x" : "@y"}
)
Then when a/BUILD is evaluated, the string "@x//:x.txt" will be turned into a Label "@y//:x.txt"
RELNOTES: None
PiperOrigin-RevId: 201562148
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/ToolchainContext.java')
0 files changed, 0 insertions, 0 deletions