Skip to content

Commit

Permalink
Add go_package names to .proto files used by BEP.
Browse files Browse the repository at this point in the history
This makes it possible to use these files as part of Buildbarn in
literal form. Some manual changes to BUILD.bazel files are still
necessary, but those should be unnecessary when Gazelle gains decent
support for dealing with multiple .proto files in one directory.
  • Loading branch information
Ed Schouten committed Mar 6, 2019
1 parent 40ce64e commit ae0bd93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ syntax = "proto3";

package build_event_stream;

option go_package = "github.com/bazelbuild/bazel/src/main/java/com/google/devtools/build/lib/buildeventstream/proto";
option java_package = "com.google.devtools.build.lib.buildeventstream";
option java_outer_classname = "BuildEventStreamProtos";

Expand Down
1 change: 1 addition & 0 deletions src/main/protobuf/command_line.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
syntax = "proto3";
package command_line;

option go_package = "github.com/bazelbuild/bazel/src/main/protobuf";
// option java_api_version = 2;
option java_package = "com.google.devtools.build.lib.runtime.proto";

Expand Down
1 change: 1 addition & 0 deletions src/main/protobuf/invocation_policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
syntax = "proto2";
package blaze.invocation_policy;

option go_package = "github.com/bazelbuild/bazel/src/main/protobuf";
// option java_api_version = 2;
option java_package = "com.google.devtools.build.lib.runtime.proto";

Expand Down
1 change: 1 addition & 0 deletions src/main/protobuf/option_filters.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
syntax = "proto3";
package options;

option go_package = "github.com/bazelbuild/bazel/src/main/protobuf";
// option java_api_version = 2;
option java_package = "com.google.devtools.common.options.proto";

Expand Down

0 comments on commit ae0bd93

Please sign in to comment.