@ -220,7 +220,7 @@ void State::buildRemote(ref<Store> 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. */
|
||||
copyClosure(ref<Store>(localStore), destStore, step->drv.inputSrcs);
|
||||
copyClosure(ref<Store>(localStore), destStore, step->drv.inputSrcs, false, true);
|
||||
|
||||
/* Copy the input closure. */
|
||||
if (/* machine->sshName != "localhost" */ true) {
|
||||
@ -388,7 +388,7 @@ void State::buildRemote(ref<Store> destStore,
|
||||
|
||||
to << cmdExportPaths << 0 << outputs;
|
||||
to.flush();
|
||||
destStore->importPaths(from, result.accessor);
|
||||
destStore->importPaths(from, result.accessor, true);
|
||||
|
||||
auto now2 = std::chrono::steady_clock::now();
|
||||
|
||||
|
@ -799,11 +799,9 @@ void State::run(BuildID buildOne)
|
||||
|
||||
localStore = openStore();
|
||||
|
||||
if (hydraConfig["store_uri"] == "") {
|
||||
_destStore = localStore;
|
||||
} else {
|
||||
_destStore = openStoreAt(hydraConfig["store_uri"]);
|
||||
}
|
||||
_destStore = hydraConfig["store_uri"] == ""
|
||||
? localStore
|
||||
: openStore(hydraConfig["store_uri"]);
|
||||
|
||||
auto isTrue = [](const std::string & s) {
|
||||
return s == "1" || s == "true";
|
||||
|
Reference in New Issue
Block a user