Skip to content

Commit

Permalink
Add go_package on all proto files
Browse files Browse the repository at this point in the history
Seems it is no longer optional after migratring off from
gogo/protobuf (see containerd#6564).

Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys authored and Kirtana Ashok committed Jan 18, 2023
1 parent c90e09a commit ef29adc
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 34 deletions.
6 changes: 6 additions & 0 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ file {
type: TYPE_BOOL
json_name: "fieldpath"
}
options {
go_package: "github.com/containerd/containerd/protobuf/plugin"
}
}
file {
name: "github.com/containerd/containerd/api/events/container.proto"
Expand Down Expand Up @@ -1214,6 +1217,9 @@ file {
number: 5
}
}
options {
go_package: "github.com/containerd/containerd/api/types/task"
}
syntax: "proto3"
}
file {
Expand Down
61 changes: 31 additions & 30 deletions api/types/task/task.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/types/task/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";

option go_package = "github.com/containerd/containerd/api/types/task";

enum Status {
UNKNOWN = 0;
CREATED = 1;
Expand Down
8 changes: 4 additions & 4 deletions protobuf/plugin/fieldpath.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions protobuf/plugin/fieldpath.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ package containerd.plugin;

import "google/protobuf/descriptor.proto";

option go_package = "github.com/containerd/containerd/protobuf/plugin";

extend google.protobuf.FileOptions {
optional bool fieldpath_all = 63300;
}
Expand Down

0 comments on commit ef29adc

Please sign in to comment.