forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/language/proto: package mode
The proto extension now supports "package" mode. This can be enabled with -proto=package on the command line or "# gazelle:proto package" in a build file. In package mode, multiple proto_libraries will be generated in a directory. Source files will be grouped by package. To group source files by an option instead (i.e., option go_package), the proto extension recognizes the proto_group command line flag and directive. The go extension generates go_proto_library rules based on the proto_library rules generated by the proto extension (independent of proto mode when possible). Related bazel-contrib/rules_go#1548
- Loading branch information
Jay Conrod
committed
Jul 2, 2018
1 parent
16c8357
commit 91e6a1e
Showing
40 changed files
with
838 additions
and
319 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,7 @@ go_repository = repository_rule( | |
values = [ | ||
"", | ||
"default", | ||
"package", | ||
"disable", | ||
"legacy", | ||
], | ||
|
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
Oops, something went wrong.