about summary refs log tree commit diff
path: root/third_party/nix/src/proto
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-01T14·59-0400
committerglittershark <grfn@gws.fyi>2020-08-01T19·00+0000
commit3fdce7c6be52bd2b86bd8a75c06f27f94b753c4f (patch)
tree20e1c32bafe71c434dbd796f86e13c4d088ac061 /third_party/nix/src/proto
parentee48e830e67ff53097f76ee2bde9ff60caf0dce7 (diff)
feat(3p/nix): Implement a few more RPC calls r/1529
Implement the RPC client calls for QueryPathFromHashPart,
QuerySubstitutablePaths, and QuerySubstitutablePathInfos, and the
handler for QuerySubstitutablePathInfos.

Refs: #29
Change-Id: Idf383b771f159f267d8f65367bc4af3d239e32b7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1515
Tested-by: BuildkiteCI
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Diffstat (limited to 'third_party/nix/src/proto')
-rw-r--r--third_party/nix/src/proto/worker.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto
index e2ff598b2c9b..e632c6264f6f 100644
--- a/third_party/nix/src/proto/worker.proto
+++ b/third_party/nix/src/proto/worker.proto
@@ -246,11 +246,13 @@ message CollectGarbageResponse {
 }
 
 message PathInfo {
+  StorePath path = 10;
   bool is_valid = 9;
   StorePath deriver = 1;
   bytes nar_hash = 2;
   repeated string references = 3;
   google.protobuf.Timestamp registration_time = 4;
+  uint64 download_size = 11;
   uint64 nar_size = 5;
   // Whether the path is ultimately trusted, that is, it's a derivation
   // output that was built locally.