-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gogenproto] Allow specifying a Go package mapping for import paths (#36
) ### Background → It may be the case that you're importing protos that are generated in some other way than with `gogenproto` but which similarly have a conventional Go path mapping (e.g. they don't specify `go_package` but instead get automatic package names. Unfortunately right now that means you can't depend on these protos from your `gogenproto`-using protos, since you can't tell `gogenproto` what their package name will be. ### Changes - Add an optional Go package prefix mapping to import paths. By appending `=` and the Go package prefix, you can use conventional (directory based) path mapping. ### Testing - Tested in stately monorepo
- Loading branch information
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters