protopatch icon indicating copy to clipboard operation
protopatch copied to clipboard

Support public imports

Open ydnar opened this issue 5 years ago • 2 comments

A proto file imported from another proto file using import public ... will have its exported types aliased in the generated Go code, and vars copied. Currently the Go code generator doesn’t check to see if the imported symbols clobber existing symbols in the importing package.

  • [ ] Ensure symbols imported using import public are renamed when aliased or copied into the destination package.
  • [ ] Consider an option to rename the symbol in an importing package.

ydnar avatar Jun 19 '20 03:06 ydnar

And is there an example of how to use with a buf?

flymedllva avatar Aug 19 '22 20:08 flymedllva

Great question. I’d accept an example with tests in a pull request.

ydnar avatar Aug 20 '22 18:08 ydnar