Skip to content

Add rewrite_imports option - #70

Merged
anuraaga merged 3 commits into
bufbuild:mainfrom
anuraaga:rewrite-imports
Sep 1, 2026
Merged

anuraaga merged 3 commits into
bufbuild:mainfrom
anuraaga:rewrite-imports

Conversation

@anuraaga

@anuraaga anuraaga commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

A rewrite_options option similar to protobuf-es seems worth supporting as an escape hatch for packaging deviations for external dependencies. It's nice to be fully implementable in the plugin, though I am also interested in an option with better UX that would likely need some changes to Buf or other components. What do you think?

Fixes #65
Closes #15

@timostamm

Copy link
Copy Markdown
Member

I'm not super happy with the option, but it solves actual practical problems, see bufbuild/protobuf-es#1203 and bufbuild/protovalidate-es#151. If you have a good idea how to simplify it, let me know.

@anuraaga

Copy link
Copy Markdown
Collaborator Author

Yeah those issues also made me think a last-minute escape hatch is useful regardless of BSR integration or such. So if it makes sense to go with it I'd like to get it in. Thanks for checking it!

@anuraaga
anuraaga merged commit e240ac4 into bufbuild:main Sep 1, 2026
42 checks passed
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.

[BUG] Buf registry packages have broken imports

3 participants