New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/language/proto: package mode #250

Merged
merged 1 commit into from Jul 3, 2018

Conversation

Projects
None yet
1 participant
@jayconrod
Collaborator

jayconrod commented Jul 2, 2018

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 bazelbuild/rules_go#1548

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 bazelbuild/rules_go#1548

@jayconrod jayconrod requested a review from ianthehat Jul 2, 2018

@jayconrod jayconrod merged commit 3e50584 into bazelbuild:master Jul 3, 2018

2 checks passed

cla/google All necessary CLAs are signed
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@jayconrod jayconrod deleted the jayconrod:proto-package branch Jul 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment