Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh: fix substitution when using experimental nix copy #156

Merged
merged 1 commit into from
May 27, 2023
Merged

ssh: fix substitution when using experimental nix copy #156

merged 1 commit into from
May 27, 2023

Conversation

emilylange
Copy link
Contributor

@emilylange emilylange commented May 23, 2023

This patch fixes the substitution (e.g. cache.nixos.org) on remotes when deploying a flake-based colmena hive, which implies the use of the experimental nix3 copy (since 7fac027).

I consider this a UX bug in nix and its ssh-ng:// itself.
I think this is because ssh-ng:// simply hasn't implemented --substitute-on-destination yet.
--builders-use-substitutes works, however (NixOS/nix#4180).

The old/legacy ssh:// does not have this issue with nix3 copy.

I'll try to look a bit more into this in the future and will consider submitting a patch in upstream.
But for now, this patch should suffice.

Especially considering it will take quite some time until that patch is available in a new nix release and installed on everyone's hosts :^)

@zhaofengli
Copy link
Owner

Reasonable change, thank you!

@zhaofengli zhaofengli merged commit c61beba into zhaofengli:main May 27, 2023
@emilylange emilylange deleted the nix3-copy-substitution branch May 27, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants