Repo-level aliasing #19927
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
P2
We'll consider working on this in future. (Assignee optional)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
Description of the feature request:
I talked to @Wyverald and he said to file a bug here.
At the moment, in rust, it automatically defines the toolchain repos:
However, in order to build our host tools, we need to define
host_to_host
. At the moment, this is an exact copy ofamd64_to_amd64
on an amd64 machine, orarm64_to_arm64
on an arm64 machine.Because it changes, and because we still want to be able to access it via the original
amd64_to_amd64
, we cannot simply write:In our module extension, I'd like to instead be able to write:
Which category does this issue belong to?
External Dependency
What underlying problem are you trying to solve with this feature?
Every rule inside the repo rule has to be executed twice, since it isn't a true alias of a repo.
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?6.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: