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

nix copy can't copy an InstallableStorePath from a binary cache #4192

Open
thufschmitt opened this issue Oct 27, 2020 · 1 comment
Open

nix copy can't copy an InstallableStorePath from a binary cache #4192

thufschmitt opened this issue Oct 27, 2020 · 1 comment

Comments

@thufschmitt
Copy link
Member

Describe the bug

Trying to run nix copy

  1. from a binary cache, and
  2. when the paths to copy are given as a nix expression rather than directly passing a store path

fails with operation 'addTempRoot' is not supported, even if the output path of the given expression is present in the binary cache.

Steps To Reproduce

nix copy --from https://cache.nixos.org nixpkgs#hello

Otoh, nix copy --from https://cache.nixos.org $(nix eval --raw nixpkgs#hello.outPath) works fine

Expected behavior

If the output path of nixpkgs#hello is already on the remote cache, I'd expect the command to succeed.

Alternatively, it should at least fail with a clearer error message

nix-env --version output

nix-env (Nix) 3.0pre20201020_e0ca98c
@stale
Copy link

stale bot commented Jun 2, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant