From ba11727ce082fea6003007c05e51c97c81b775e7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 16 Jul 2020 23:05:17 +0100 Subject: feat(3p/nix/proto): Add QueryMissing RPC call Change-Id: I6a29c56a0f945afdef7434da539b4b91b2e4d2e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1222 Reviewed-by: glittershark Tested-by: BuildkiteCI --- third_party/nix/src/proto/worker.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/third_party/nix/src/proto/worker.proto b/third_party/nix/src/proto/worker.proto index f192478cf1..32df488a5d 100644 --- a/third_party/nix/src/proto/worker.proto +++ b/third_party/nix/src/proto/worker.proto @@ -100,6 +100,11 @@ service Worker { // Upload & add a NAR to the daemon's Nix store. rpc AddToStoreNar(stream AddToStoreNarRequest) returns (google.protobuf.Empty); + + // Given a set of paths that are to be built, return the set of + // derivations that will be built, and the set of output paths that + // will be substituted. + rpc QueryMissing(StorePaths) returns (QueryMissingResponse); } enum HashType { @@ -299,3 +304,11 @@ message AddToStoreNarRequest { bytes chunk = 2; } } + +message QueryMissingResponse { + repeated string will_build = 1; + repeated string will_substitute = 2; + repeated string unknown = 3; + uint64 download_size = 4; + uint64 nar_size = 5; +} -- cgit 1.4.1