From f34b8de5b2ba9f5ed92924e30661b70ed427a123 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 9 Apr 2024 21:27:00 +0200 Subject: [PATCH] doc/rl-2.20: add missing entry about `nix copy --to ssh-ng://...` This requires `--substitute-on-destination` if you want the remote side to substitute instead of copying if possible. For completeness sake, document it here. Also, the stable Nix from nixpkgs is still 2.18, so more folks may stumble upon this when this is bumped, so I'd expect this to be actually useful. Closes #10182 --- doc/manual/src/release-notes/rl-2.20.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/manual/src/release-notes/rl-2.20.md b/doc/manual/src/release-notes/rl-2.20.md index 8ede168a4..d36dd4784 100644 --- a/doc/manual/src/release-notes/rl-2.20.md +++ b/doc/manual/src/release-notes/rl-2.20.md @@ -200,3 +200,8 @@ while performing various operations (including `nix develop`, `nix flake update`, and so on). With several fixes to Nix's signal handlers, Nix commands will now exit quickly after Ctrl-C is pressed. + +- `nix copy` to a `ssh-ng` store now needs `--substitute-on-destination` (a.k.a. `-s`) + in order to substitute paths on the remote store instead of copying them. + The behavior is consistent with `nix copy` to a different kind of remote store. + Previously this behavior was controlled by `--builders-use-substitutes`.