Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(protoc-gen-fastmarshal): generated code should respect Go package aliases from 'option go_package' #126

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

dylan-bourque
Copy link
Collaborator

Updates the logic that generates additional imports to extract the go_package option from the parent .proto file and include the explicit package name, if present update the codegen templates to use the package alias if set

Fixes #121

… aliases from 'option go_package'

update the logic that generates additional imports to extract the `go_package` option from the
parent .proto file and include the explicit package name, if present
update the codegen templates to use the package alias if set
Fixes #121
@dylan-bourque dylan-bourque requested a review from a team August 28, 2023 15:09
@dylan-bourque dylan-bourque self-assigned this Aug 28, 2023
@dylan-bourque
Copy link
Collaborator Author

This PR supersedes #123. h/t @biosvs for finding the gap in the previous logic.

Copy link

@wmorgan6796 wmorgan6796 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dylan-bourque dylan-bourque merged commit 03a1712 into main Aug 28, 2023
5 checks passed
@dylan-bourque dylan-bourque deleted the respect-go-package-aliases-in-addtl-imports branch August 28, 2023 15:28
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.

import package alias not generated by protoc-gen-fastmarshal
2 participants