* [PATCH platform2] vm_tools: proto: fix go_package import path
@ 2021-06-27 16:50 Alyssa Ross
0 siblings, 0 replies; only message in thread
From: Alyssa Ross @ 2021-06-27 16:50 UTC (permalink / raw)
To: devel; +Cc: Puck Meerburg
This is required by protoc-gen-go >= 1.4.0.
---
I don't really have any idea what I'm doing here -- this is my best
guess. If somebody could tell me if it looks sensible I'd be much
obliged.
vm_tools/proto/common.proto | 1 +
vm_tools/proto/tremplin.proto | 2 +-
vm_tools/proto/vm_crash.proto | 2 +-
vm_tools/proto/vm_guest.proto | 1 +
vm_tools/proto/vm_host.proto | 1 +
5 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/vm_tools/proto/common.proto b/vm_tools/proto/common.proto
index 39a3e39528..f11d128ef1 100644
--- a/vm_tools/proto/common.proto
+++ b/vm_tools/proto/common.proto
@@ -8,6 +8,7 @@ option cc_enable_arenas = true;
// Common definitions used by both host and guest messages.
package vm_tools;
+option go_package = "chromiumos/vm_tools";
// gRPC requires that every RPC has an argument and a return value. This empty
// message is used when an argument or return value is not required.
diff --git a/vm_tools/proto/tremplin.proto b/vm_tools/proto/tremplin.proto
index aac76f7a9e..0a8968fe8d 100644
--- a/vm_tools/proto/tremplin.proto
+++ b/vm_tools/proto/tremplin.proto
@@ -8,7 +8,7 @@ option cc_enable_arenas = true;
// This file defines services for tremplin, the container springboard service.
package vm_tools.tremplin;
-option go_package = "tremplin_proto";
+option go_package = "chromiumos/vm_tools/tremplin/tremplin_proto";
// This needs to be duplicated because the gyp rule for building
// go code makes it difficult to have imports.
diff --git a/vm_tools/proto/vm_crash.proto b/vm_tools/proto/vm_crash.proto
index 6e4f62fe13..70d620fde8 100644
--- a/vm_tools/proto/vm_crash.proto
+++ b/vm_tools/proto/vm_crash.proto
@@ -7,7 +7,7 @@ syntax = "proto3";
option cc_enable_arenas = true;
package vm_tools.cicerone;
-option go_package = "vm_crash";
+option go_package = "chromiumos/vm_tools/cicerone/vm_crash";
import "common.proto";
diff --git a/vm_tools/proto/vm_guest.proto b/vm_tools/proto/vm_guest.proto
index 34d2fd3d60..b3a742ec07 100644
--- a/vm_tools/proto/vm_guest.proto
+++ b/vm_tools/proto/vm_guest.proto
@@ -8,6 +8,7 @@ option cc_enable_arenas = true;
// This file defines services that will be running in the guest VM.
package vm_tools;
+option go_package = "chromiumos/vm_tools";
import "common.proto";
import "google/protobuf/timestamp.proto";
diff --git a/vm_tools/proto/vm_host.proto b/vm_tools/proto/vm_host.proto
index a8bd066f61..de31fa747f 100644
--- a/vm_tools/proto/vm_host.proto
+++ b/vm_tools/proto/vm_host.proto
@@ -8,6 +8,7 @@ option cc_enable_arenas = true;
// This file defines services that will be running on the host for the VM.
package vm_tools;
+option go_package = "chromiumos/vm_tools/vm_host";
import "common.proto";
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-27 16:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27 16:50 [PATCH platform2] vm_tools: proto: fix go_package import path Alyssa Ross
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).