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

add --print-out-paths,--out-link, --profile to nix copy #11790

Open
arianvp opened this issue Nov 2, 2024 · 1 comment
Open

add --print-out-paths,--out-link, --profile to nix copy #11790

arianvp opened this issue Nov 2, 2024 · 1 comment
Labels

Comments

@arianvp
Copy link
Member

arianvp commented Nov 2, 2024

Describe the bug

Currently if you do nix copy my-flake#myattr --from ssh-ng://my-host there is no way to tell where the copy went to? No nix store path is printed and no result symlink is created. How am I supposed to know where the path came from without an additional nix path-info ?

Steps To Reproduce

nix copy and not know where the path was copied from

Expected behavior

I should be able to do:

nix copy --from ssh-ng://builder .#myattr --print-out-paths
nix copy --from ssh-ng://builder .#myattr --out-link result
nix copy --from ssh-ng://builder .#myattr --profile my-profile

nix-env --version output

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

@arianvp arianvp added the bug label Nov 2, 2024
@arianvp arianvp changed the title add --print-out-paths and/or --out-link to nix copy add --print-out-paths,--out-link, --profile to nix copy Nov 2, 2024
@arianvp
Copy link
Member Author

arianvp commented Nov 2, 2024

I now do

 nix build --eval-store auto --store ssh-ng://utm.local  .#hydraJobs.builder && nix copy --from ssh-ng://utm.local .#hydraJobs.builder --no-check-sigs && nix build .#hydraJobs.builder

as a workaround but it feels massively hackey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant