Skip to content

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Oct 21, 2025

Fix import option handling when include_imports isn't set.

These should be handled like regular dependencies and not included in the output FileDescriptorSet. They're not useful on their own, and can be harmful by signaling files that aren't actually direct sources.

Also allow descriptor set inputs with missing option dependencies. We won't output this, but we should honor it as an input since the option dependencies aren't really necessary. Notably, our kotlin blazel rules pass these stripped descriptor sets to protoc.

These should be handled like regular dependencies and not included in the output FileDescriptorSet.  They're not useful on their own, and can be harmful by signaling files that aren't actually direct sources.

Also allow descriptor set inputs with missing option dependencies.  We won't *output* this, but we should honor it as an input since the option dependencies aren't really necessary.  Notably, our kotlin blazel rules pass these stripped descriptor sets to protoc.

PiperOrigin-RevId: 821854106
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