feat(bazel): wire up prebuilt protoc toolchain (#24115)#24888
Merged
copybara-service[bot] merged 1 commit intomainfrom Dec 15, 2025
Merged
feat(bazel): wire up prebuilt protoc toolchain (#24115)#24888copybara-service[bot] merged 1 commit intomainfrom
copybara-service[bot] merged 1 commit intomainfrom
Conversation
8101fae to
d286ab0
Compare
Upstreamed from my https://github.com/aspect-build/toolchains_protoc which provided this feature outside the protobuf repo. Adds: - private API: module_extension + tag `protoc.prebuilt_toolchain` to provide and register toolchain for bzlmod users - WORKSPACE users can live with the inconvenience of having to create toolchains themselves - example of proto_library rule with intentionally non-functional cc toolchain, exercising the feature This needs work with @thesayyn to: - constrain users to choosing a protoc version agreeing with design doc https://docs.google.com/document/d/16N-eU-0zHbWmxEuaUAIFTJwQLekIXZ8zIC3K4XDr20E/edit - also register lang toolchains when the flag is enabled Work towards #19558 Closes #24115 COPYBARA_INTEGRATE_REVIEW=#24115 from protocolbuffers:alexeagle/use_prebuilt_toolchain b18667d PiperOrigin-RevId: 844859103
d286ab0 to
cc23698
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(bazel): wire up prebuilt protoc toolchain (#24115)
Upstreamed from my https://github.com/aspect-build/toolchains_protoc which provided this feature outside the protobuf repo.
Adds:
protoc.prebuilt_toolchainto provide and register toolchain for bzlmod usersThis needs work with @thesayyn to:
https://docs.google.com/document/d/16N-eU-0zHbWmxEuaUAIFTJwQLekIXZ8zIC3K4XDr20E/edit
Work towards #19558
Closes #24115
COPYBARA_INTEGRATE_REVIEW=#24115 from protocolbuffers:alexeagle/use_prebuilt_toolchain b18667d
FUTURE_COPYBARA_INTEGRATE_REVIEW=#24115 from protocolbuffers:alexeagle/use_prebuilt_toolchain b18667d