CrowdStrike / csproto

CrowdStrike's Protocol Buffers library
MIT License
122 stars 13 forks source link

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

Closed dylan-bourque closed 1 year ago

dylan-bourque commented 1 year ago

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

dylan-bourque commented 1 year ago

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