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 flake clone fails on a remote flake with a dir parameter #12417

Open
2 tasks done
LeonChambers opened this issue Feb 4, 2025 · 0 comments
Open
2 tasks done

nix flake clone fails on a remote flake with a dir parameter #12417

LeonChambers opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@LeonChambers
Copy link

Describe the bug

Running nix flake clone on a remote flake with a dir parameter fails with

fatal: remote error:
  is not a valid repository name

Steps To Reproduce

nix flake clone git+ssh://[email protected]/NixOS/nix?dir=tests/functional/ca/flake.nix --dest test is a simple way to reproduce it. I actually ran into this running nixos-rebuild switch with my personal github repo, but the error message is the same. If you remove the dir parameter, the command works as expected

Expected behavior

This used to work and successfully clone the repo.

Metadata

nix-env (Nix) 2.24.12

Additional context

I tried bisecting this myself on the 2.24-maintenance branch. It seems like it started failing in 6e44bc2

Checklist


Add 👍 to issues you find important.

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