-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protoc-gen-go: fix up generation of package names (#576)
An earlier change inadvertendly made the import_path flag stop setting the package name. In addition, we intentionally removed the behavior where a go_package option in one file would set the package name for other generated files, in anticipation of allowing a single compilation action to generate code for many packages. This change restores the import_path behavior. It also permits a go_package option in one file to affect other files *in the same package*. (Every source file should include a go_package option, which makes this case moot, but this minimizes the amount of breaking change that we're introducing.) Also tweak assignment of import paths to allow the import_path flag to set the import path for all generated files.
- Loading branch information
Showing
2 changed files
with
99 additions
and
42 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