ssh: fix substitution when using experimental nix copy

This commit is contained in:
emilylange 2023-05-23 15:49:52 +02:00
parent caf33af7d8
commit beb157dcb6
No known key found for this signature in database
GPG key ID: 0AD773CE46FD0F87

View file

@ -273,7 +273,11 @@ impl Ssh {
]);
if options.use_substitutes {
command.arg("--substitute-on-destination");
command.args(&[
"--substitute-on-destination",
// needed due to UX bug in ssh-ng://
"--builders-use-substitutes",
]);
}
if let Some("drv") = path.extension().and_then(OsStr::to_str) {