From 2b9330911ac1ba9bd0751235e91a11f56ce3267d Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 19 Nov 2022 21:20:14 +0000 Subject: [PATCH] feat(tvix/store/protos): add go_package option Change-Id: I0898b8a0a78e704219da38e5acaabef1e640d4e4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7321 Reviewed-by: Adam Joseph Tested-by: BuildkiteCI --- tvix/store/protos/castore.proto | 2 ++ tvix/store/protos/pathinfo.proto | 2 ++ tvix/store/protos/rpc_blobstore.proto | 2 ++ tvix/store/protos/rpc_directory.proto | 2 ++ tvix/store/protos/rpc_pathinfo.proto | 2 ++ 5 files changed, 10 insertions(+) diff --git a/tvix/store/protos/castore.proto b/tvix/store/protos/castore.proto index 3d380c63d..747aab08b 100644 --- a/tvix/store/protos/castore.proto +++ b/tvix/store/protos/castore.proto @@ -5,6 +5,8 @@ syntax = "proto3"; package tvix.store.v1; +option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; + // A Directory can contain Directory, File or Symlink nodes. // Each of these nodes have a name attribute, which is the basename in that directory // and node type specific attributes. diff --git a/tvix/store/protos/pathinfo.proto b/tvix/store/protos/pathinfo.proto index 0fbf0ed6b..279bb1484 100644 --- a/tvix/store/protos/pathinfo.proto +++ b/tvix/store/protos/pathinfo.proto @@ -6,6 +6,8 @@ package tvix.store.v1; import "tvix/store/protos/castore.proto"; +option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; + // PathInfo shows information about a Nix Store Path. // That's a single element inside /nix/store. message PathInfo { diff --git a/tvix/store/protos/rpc_blobstore.proto b/tvix/store/protos/rpc_blobstore.proto index 49a6b974f..1d4349bc6 100644 --- a/tvix/store/protos/rpc_blobstore.proto +++ b/tvix/store/protos/rpc_blobstore.proto @@ -4,6 +4,8 @@ syntax = "proto3"; package tvix.store.v1; +option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; + service BlobService { rpc Get(GetBlobRequest) returns (GetBlobResponse); rpc Put(PutBlobRequest) returns (PutBlobResponse); diff --git a/tvix/store/protos/rpc_directory.proto b/tvix/store/protos/rpc_directory.proto index 29e175a10..0aeed5c3c 100644 --- a/tvix/store/protos/rpc_directory.proto +++ b/tvix/store/protos/rpc_directory.proto @@ -6,6 +6,8 @@ package tvix.store.v1; import "tvix/store/protos/castore.proto"; +option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; + service DirectoryService { // Get retrieves a stream of Directory messages, by using the lookup // parameters in GetDirectoryRequest. diff --git a/tvix/store/protos/rpc_pathinfo.proto b/tvix/store/protos/rpc_pathinfo.proto index 160e59426..f9710f572 100644 --- a/tvix/store/protos/rpc_pathinfo.proto +++ b/tvix/store/protos/rpc_pathinfo.proto @@ -6,6 +6,8 @@ package tvix.store.v1; import "tvix/store/protos/pathinfo.proto"; +option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; + service PathInfoService { // Get retrieves a PathInfo object, by using the lookup parameters in // GetPathInfoRequest.