toolchain docs should mention issues with repository names #6828
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Configurability
platforms, toolchains, cquery, select(), config transitions
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
type: documentation (cleanup)
The toolchains documentation gives details on creating a toolchain and using it in the same repository. Due to the way Starlark handles loads and target equivalence, when a toolchain is used via an external repository, it must be referred to by the fully qualified label (including the repository) everywhere, including in the rule definitions and toolchain definitions.
This can be exemplified by the rules_rust repo repo:
io_bazel_rules_rust
: https://github.com/bazelbuild/rules_rust/blob/master/WORKSPACE#L1io_bazel_rules_rust
.The documentation should be set up to describe this.
Ideally, error-checking code in toolchain resolution would also at least mention this case, but that's very very tricky.
The text was updated successfully, but these errors were encountered: