Hi all.
I have another potentially interesting finding: it seems that `repository_ctx` does not have a `.toolchains` property.
IIUC, this makes it tricky to pass a binary into a repository rule, if you want to vary the binary based on the host platform. I didn't notice that there is the appropriate API in `repository_ctx`.
I ended up doing some guesswork to find the appropriate binary. But if seems as if this should be something that would need to be offered by bazel to have any chance at robustness.
For some background: I'm creating rules for downloading archives using the bittorrent protocol. Of course, to do this I want to pass a binary into the rule, and use it to start a download. I'd like to make it be a multi-platform rule, so I need a way to introduce a level of indirection depending on the host platform.
Regular rules do this via toolchains, so even here it feels like `.toolchains` should be supported in the `repository_ctx` API.
Am I missing something?
Thank you,
F