nix/host: Always copy outputs to remote along with derivations when realizing
This prevents useless rebuilds when trying to realize a derivation on a remote host. This code path isn't actually used by Colmena at the moment.
This commit is contained in:
parent
64534a744c
commit
f809d3b21c
1 changed files with 4 additions and 3 deletions
|
@ -79,11 +79,12 @@ pub trait Host: Send + Sync + std::fmt::Debug {
|
|||
|
||||
/// Realizes the specified local derivation on the host then retrieves the outputs.
|
||||
async fn realize(&mut self, derivation: &StorePath) -> NixResult<Vec<StorePath>> {
|
||||
let options = CopyOptions::default();
|
||||
let options = CopyOptions::default()
|
||||
.include_outputs(true);
|
||||
|
||||
self.copy_closure(derivation, CopyDirection::ToRemote, options.include_outputs(false)).await?;
|
||||
self.copy_closure(derivation, CopyDirection::ToRemote, options).await?;
|
||||
let paths = self.realize_remote(derivation).await?;
|
||||
self.copy_closure(derivation, CopyDirection::FromRemote, options.include_outputs(true)).await?;
|
||||
self.copy_closure(derivation, CopyDirection::FromRemote, options).await?;
|
||||
|
||||
Ok(paths)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue