Add go_packages to protos missing them
This will make warnings of the following form go away. I don't think
this will cause any problems in the chromium infra proto roll, but I'll
watch that afterward.
example before:
2021/02/04 10:37:54 WARNING: Missing 'go_package' option in "tast/test_result.proto",
please specify it with the full Go package path as
a future release of protoc-gen-go will require this be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
BUG=chromium:1174238
TEST=local gen
Change-Id: Iccb6c053d5b0dc062ed6c990872ea98c6f6a054f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2676122
Reviewed-by: Prathmesh Prabhu <pprabhu@google.com>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
diff --git a/go/analysis_service/analysis_service.pb.go b/go/analysis_service/analysis_service.pb.go
index 79d7441..6139508 100644
--- a/go/analysis_service/analysis_service.pb.go
+++ b/go/analysis_service/analysis_service.pb.go
@@ -1182,7 +1182,11 @@
0x65, 0x48, 0x01, 0x52, 0x18, 0x67, 0x65, 0x74, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x09, 0x0a,
0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d,
+ 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d,
+ 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61,
+ 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62,
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/go/build/build_config.pb.go b/go/build/build_config.pb.go
index bb0e91a..d868144 100644
--- a/go/build/build_config.pb.go
+++ b/go/build/build_config.pb.go
@@ -880,7 +880,10 @@
0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c,
0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x72, 0x6f, 0x6d, 0x65, 0x4f,
0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73,
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x42, 0x35, 0x5a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
+ 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69,
+ 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64,
+ 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/go/config/replication_config.pb.go b/go/config/replication_config.pb.go
index 4527605..2df2a53 100644
--- a/go/config/replication_config.pb.go
+++ b/go/config/replication_config.pb.go
@@ -410,7 +410,11 @@
0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f,
0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x50, 0x59, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x52,
0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
- 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x2e, 0x63,
+ 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f,
+ 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x33,
}
var (
diff --git a/go/tast/test_result.pb.go b/go/tast/test_result.pb.go
index fcdb139..f44bdb8 100644
--- a/go/tast/test_result.pb.go
+++ b/go/tast/test_result.pb.go
@@ -300,8 +300,11 @@
0x6e, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20,
0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
- 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x42,
+ 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f,
+ 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e,
+ 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x61, 0x73, 0x74, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/go/test_platform/multibot/common.pb.go b/go/test_platform/multibot/common.pb.go
index 7a86a10..b9b5c98 100644
--- a/go/test_platform/multibot/common.pb.go
+++ b/go/test_platform/multibot/common.pb.go
@@ -8,7 +8,7 @@
// protoc v3.6.1
// source: test_platform/multibot/common.proto
-package test_platform_multibot
+package multibot
import (
test_platform "go.chromium.org/chromiumos/infra/proto/go/test_platform"
@@ -305,8 +305,12 @@
0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x41,
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x12, 0x73, 0x6f, 0x66, 0x74, 0x77,
- 0x61, 0x72, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x61, 0x72, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x42, 0x5a,
+ 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
+ 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72,
+ 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f,
+ 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f,
+ 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/go/test_platform/multibot/follower_transitions.pb.go b/go/test_platform/multibot/follower_transitions.pb.go
index 7d2a1f8..1947c84 100644
--- a/go/test_platform/multibot/follower_transitions.pb.go
+++ b/go/test_platform/multibot/follower_transitions.pb.go
@@ -8,7 +8,7 @@
// protoc v3.6.1
// source: test_platform/multibot/follower_transitions.proto
-package test_platform_multibot
+package multibot
import (
skylab_local_state "go.chromium.org/chromiumos/infra/proto/go/test_platform/skylab_local_state"
@@ -309,8 +309,12 @@
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x73, 0x6b, 0x79, 0x6c, 0x61, 0x62, 0x5f, 0x6c, 0x6f,
0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x42,
0x6f, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74,
- 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x42, 0x5a,
+ 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
+ 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72,
+ 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f,
+ 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f,
+ 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/go/test_platform/multibot/leader_transitions.pb.go b/go/test_platform/multibot/leader_transitions.pb.go
index e50f710..b6cddaa 100644
--- a/go/test_platform/multibot/leader_transitions.pb.go
+++ b/go/test_platform/multibot/leader_transitions.pb.go
@@ -8,7 +8,7 @@
// protoc v3.6.1
// source: test_platform/multibot/leader_transitions.proto
-package test_platform_multibot
+package multibot
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -254,7 +254,12 @@
0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e,
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x6e, 0x66,
0x6f, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72,
- 0x73, 0x48, 0x65, 0x61, 0x72, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x73, 0x48, 0x65, 0x61, 0x72, 0x64, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
+ 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
+ 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2f, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
+ 0x6d, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x33,
}
var (
diff --git a/go/test_platform/multibot/requests.pb.go b/go/test_platform/multibot/requests.pb.go
index 4147487..cb065b1 100644
--- a/go/test_platform/multibot/requests.pb.go
+++ b/go/test_platform/multibot/requests.pb.go
@@ -8,7 +8,7 @@
// protoc v3.6.1
// source: test_platform/multibot/requests.proto
-package test_platform_multibot
+package multibot
import (
test_platform "go.chromium.org/chromiumos/infra/proto/go/test_platform"
@@ -213,7 +213,11 @@
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
- 0x38, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x38, 0x01, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75,
+ 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73,
+ 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
+ 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x6d, 0x75,
+ 0x6c, 0x74, 0x69, 0x62, 0x6f, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/src/analysis_service/analysis_service.proto b/src/analysis_service/analysis_service.proto
index b996e22..42e6c20 100644
--- a/src/analysis_service/analysis_service.proto
+++ b/src/analysis_service/analysis_service.proto
@@ -1,6 +1,8 @@
syntax = "proto3";
package analysis_service;
+option go_package = "go.chromium.org/chromiumos/infra/proto/analysis_service";
+
import "chromite/api/artifacts.proto";
import "chromite/api/binhost.proto";
import "chromite/api/depgraph.proto";
diff --git a/src/build/build_config.proto b/src/build/build_config.proto
index c2aec8c..8be4be8 100644
--- a/src/build/build_config.proto
+++ b/src/build/build_config.proto
@@ -8,6 +8,8 @@
package build_config;
+option go_package = "go.chromium.org/chromiumos/infra/proto/build_config";
+
// A single ChromeOS Config payload.
//
// The generated ChromeOS Config JSON uses "-", which is not valid in a proto
@@ -197,4 +199,4 @@
// All ChromeOS Config payloads for a given build.
message ChromeOSConfigs {
repeated ChromeOSConfig configs = 1;
-}
\ No newline at end of file
+}
diff --git a/src/config/replication_config.proto b/src/config/replication_config.proto
index 12d34b5..d22d87f 100644
--- a/src/config/replication_config.proto
+++ b/src/config/replication_config.proto
@@ -6,6 +6,8 @@
package config;
+option go_package = "go.chromium.org/chromiumos/infra/proto/config";
+
import "google/protobuf/field_mask.proto";
// Describes different file types that can be replicated.
diff --git a/src/tast/test_result.proto b/src/tast/test_result.proto
index 33610fe..a356634 100644
--- a/src/tast/test_result.proto
+++ b/src/tast/test_result.proto
@@ -2,6 +2,8 @@
package tast;
+option go_package = "go.chromium.org/chromiumos/infra/proto/tast";
+
// A proto representation of tast's TestResult golang / JSON object.
//
// Currently this proto is only used for storing tast results for analysis (e.g.
diff --git a/src/test_platform/multibot/common.proto b/src/test_platform/multibot/common.proto
index df604f6..ea66d01 100644
--- a/src/test_platform/multibot/common.proto
+++ b/src/test_platform/multibot/common.proto
@@ -6,6 +6,8 @@
package test_platform.multibot;
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/multibot";
+
import "test_platform/request.proto";
import "test_platform/skylab_local_state/host_info.proto";
import "test_platform/skylab_test_runner/request.proto";
diff --git a/src/test_platform/multibot/follower_transitions.proto b/src/test_platform/multibot/follower_transitions.proto
index 73db58c..45d17c3 100644
--- a/src/test_platform/multibot/follower_transitions.proto
+++ b/src/test_platform/multibot/follower_transitions.proto
@@ -6,6 +6,8 @@
package test_platform.multibot;
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/multibot";
+
import "test_platform/skylab_local_state/multihost.proto";
// FollowerStateChange is sent over the multibot Leader->Follower channel, to
diff --git a/src/test_platform/multibot/leader_transitions.proto b/src/test_platform/multibot/leader_transitions.proto
index 28b5649..8fa4c95 100644
--- a/src/test_platform/multibot/leader_transitions.proto
+++ b/src/test_platform/multibot/leader_transitions.proto
@@ -6,6 +6,7 @@
package test_platform.multibot;
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/multibot";
import "test_platform/multibot/common.proto";
diff --git a/src/test_platform/multibot/requests.proto b/src/test_platform/multibot/requests.proto
index fa07811..11076d7 100644
--- a/src/test_platform/multibot/requests.proto
+++ b/src/test_platform/multibot/requests.proto
@@ -6,6 +6,8 @@
package test_platform.multibot;
+option go_package = "go.chromium.org/chromiumos/infra/proto/go/test_platform/multibot";
+
import "test_platform/phosphorus/prejob.proto";
import "test_platform/multibot/common.proto";
import "test_platform/request.proto";