-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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-prefetch-git produces different store paths from fetchgit #6651
Comments
To be clear, the annoyance here is that |
Do you think we should adopt the same naming heuristic in |
@copumpkin I got both versions (7bfa5a4542933a17262eca47d67a3de1aa877e6b and 35fe889927f2f50ba29c88f01d4f7dfb95cba5ca) I think the second-one is the nicest because it's still possible to infer what the derivation is based on it's name when looking at /nix/store. In exchange we have that heuristic that might not be 100% equivalent between nix and bash. |
This commit fixes NixOS#6651. Before this change the `nix-prefetch-git` script would use a different store name than nix's `fetchgit` function. Because of that it was not possible to use `nix-prefetch-git` as a way to pre-populate the store (for example when the user it using private git dependencies that needs access to the ssh agent)
This commit fixes NixOS#6651. Before this change the `nix-prefetch-git` script would use a different store name than nix's `fetchgit` function. Because of that it was not possible to use `nix-prefetch-git` as a way to pre-populate the store (for example when the user it using private git dependencies that needs access to the ssh agent)
It looks like
nix-prefetch-git
always produces<hash>-git-export
(i.e.,name = "git-export"
), whereasfetchgit
tries to do fancy things with the basename of the repo URL and the git revision.The text was updated successfully, but these errors were encountered: