Skip to content

Drop the toolchain proxy repositories - #4464

Open
UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:drop-toolchain-proxies
Open

UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:drop-toolchain-proxies

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

This change removes toolchain_repository_proxy and rust_toolchain_repository. The hub declares a toolchain() for every toolchain and names the _tools repositories directly, so the proxies were declared but never consumed, and rust_toolchain_repository had no callers left. Registration stays lazy without them: a toolchain() stores the label of its implementation, which is only analyzed, and its repository only fetched, once toolchain resolution selects it.

aliases still rename the hub entry and the prefix of the _tools repository. use_repo of an alias no longer works, as no repository of that name exists; the aliased toolchains integration test registered its aliases through the hub already.

This change removes `toolchain_repository_proxy` and
`rust_toolchain_repository`. The hub declares a `toolchain()` for every
toolchain and names the `_tools` repositories directly, so the proxies
were declared but never consumed, and `rust_toolchain_repository` had no
callers left. Registration stays lazy without them: a `toolchain()`
stores the label of its implementation, which is only analyzed, and its
repository only fetched, once toolchain resolution selects it.

`aliases` still rename the hub entry and the prefix of the `_tools`
repository. `use_repo` of an alias no longer works, as no repository of
that name exists; the aliased toolchains integration test registered
its aliases through the hub already.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant