From 930f05c38eeac63ad6c3e3250de2667e2df2e96e Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 10 Mar 2021 12:42:19 -0500 Subject: [PATCH] Bump Nix version --- flake.lock | 12 ++++++------ src/hydra-queue-runner/build-remote.cc | 7 +++++-- src/hydra-queue-runner/queue-monitor.cc | 4 +++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 82427e9f..45995506 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1613747933, - "narHash": "sha256-Q6VuNRdr87B4F3ILiM6IlQ+bkIYbQTs6EEAtwNrvl1Y=", + "lastModified": 1615194819, + "narHash": "sha256-LfPUsgeFRBzRgTp+828E7UhiVItSYH+CK6IJcjmlcZ4=", "owner": "NixOS", "repo": "nix", - "rev": "548437c2347159c4c79352283dd12ce58324f1d6", + "rev": "1c0e3e453d41b869e4ac7e25dc1c00c349a7c411", "type": "github" }, "original": { @@ -19,11 +19,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1602702596, - "narHash": "sha256-fqJ4UgOb4ZUnCDIapDb4gCrtAah5Rnr2/At3IzMitig=", + "lastModified": 1614309161, + "narHash": "sha256-93kRxDPyEW9QIpxU71kCaV1r+hgOgP6/aVgC7vvO8IU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ad0d20345219790533ebe06571f82ed6b034db31", + "rev": "0e499fde7af3c28d63e9b13636716b86c3162b93", "type": "github" }, "original": { diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 51f96db2..cce46a05 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -264,8 +264,11 @@ void State::buildRemote(ref destStore, a no-op for regular stores, but for the binary cache store, this will copy the inputs to the binary cache from the local store. */ - if (localStore != std::shared_ptr(destStore)) - copyClosure(ref(localStore), destStore, step->drv->inputSrcs, NoRepair, NoCheckSigs); + if (localStore != std::shared_ptr(destStore)) { + StorePathSet closure; + localStore->computeFSClosure(step->drv->inputSrcs, closure); + copyPaths(ref(localStore), destStore, closure, NoRepair, NoCheckSigs, NoSubstitute); + } /* Copy the input closure. */ if (!machine->isLocalhost()) { diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index 53d00f99..9c92f635 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -500,7 +500,9 @@ Step::ptr State::createStep(ref destStore, // FIXME: should copy directly from substituter to destStore. } - copyClosure(ref(localStore), destStore, {*path}); + StorePathSet closure; + localStore->computeFSClosure({*path}, closure); + copyPaths(ref(localStore), destStore, closure, NoRepair, CheckSigs, NoSubstitute); time_t stopTime = time(0);