about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-07-16T02·01-0400
committerglittershark <grfn@gws.fyi>2020-07-16T21·40+0000
commit863a77dd2a4be271724404d412d41c6361355ce8 (patch)
tree7a76edabdfb38b8261bbc4d751ec2e939f6b5a2c /third_party
parentd470ec0d2946d77b0e4c4b9a0a1e383c0a817167 (diff)
feat(3p/nix): Add QueryPathFromHashPart r/1326
Change-Id: I0a31557f4cf585d3e539e29ef1a07b443aeec9fc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1202
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nix/src/proto/worker.proto31
1 files changed, 19 insertions, 12 deletions
diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto
index acb19cc8de..9ba5ac852a 100644
--- a/third_party/nix/src/proto/worker.proto
+++ b/third_party/nix/src/proto/worker.proto
@@ -65,6 +65,9 @@ service Worker {
 
   // Query the output names of the given derivation
   rpc QueryDerivationOutputNames(StorePath) returns (DerivationOutputNames);
+
+  // TODO: What is a HashPart?
+  rpc QueryPathFromHashPart(HashPart) returns (StorePath);
 }
 
 enum HashType {
@@ -203,19 +206,23 @@ message SubstitutablePathInfos {
 }
 
 message QueryPathInfoResponse {
-    StorePath deriver = 1;
-    string nar_hash = 2;
-    repeated string references = 3;
-    google.protobuf.Timestamp registration_time = 4;
-    uint64 nar_size = 5;
-    // Whether the path is ultimately trusted, that is, it's a derivation
-    // output that was built locally.
-    bool ultimate = 6;
-    repeated string sigs = 7;
-    // If non-empty, an assertion that the path is content-addressed
-    string ca = 8;
+  StorePath deriver = 1;
+  string nar_hash = 2;
+  repeated string references = 3;
+  google.protobuf.Timestamp registration_time = 4;
+  uint64 nar_size = 5;
+  // Whether the path is ultimately trusted, that is, it's a derivation
+  // output that was built locally.
+  bool ultimate = 6;
+  repeated string sigs = 7;
+  // If non-empty, an assertion that the path is content-addressed
+  string ca = 8;
 };
 
 message DerivationOutputNames {
-    repeated string names = 1;
+  repeated string names = 1;
+}
+
+message HashPart {
+  string hash_part = 1;
 }