Skip to content

Conversation

@stagnation
Copy link
Collaborator

Following discussions in buildbarn/bb-storage#248 we must register the toolchain as well. I don't know if this was always an oversight or the behavior changed.

@stagnation stagnation force-pushed the feature/refactor-register-the-pre-built-protoc-toolchain branch from 101c968 to fd3c6b5 Compare June 9, 2025 09:14
@alexeagle
Copy link

alexeagle commented Jun 10, 2025

This isn't supposed to be needed - I changed toolchains_protoc instructions: aspect-build/toolchains_protoc#75

Note the new README content in that PR - this is one way to fix it, but the other is simply to move toolchains_protoc earlier in the bazel_deps.

Note, the protobuf team broke it by registering their from-source toolchain on the same toolchain_type symbol.

@stagnation
Copy link
Collaborator Author

Thanks for the help in troubleshooting. Still a bit annoying to have order dependence, but it is clear why calls to register_toolchains would have order dependence so this just follows on from that. 👍

By calling the protoc toolchain module first its registered toolchain
wins for compiling protoc. This follows discussions in
buildbarn/bb-storage#248
@stagnation stagnation force-pushed the feature/refactor-register-the-pre-built-protoc-toolchain branch from fd3c6b5 to 6262699 Compare June 13, 2025 13:14
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.

3 participants