-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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: use fetchgit's naming heuristic #12597
Conversation
Do we need the second commit? |
@jagajaga it belongs to a second PR, I'll remove it |
611f799
to
35fe889
Compare
Now part of #12603 |
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)
35fe889
to
02f5a01
Compare
@jagajaga @copumpkin merge ? |
Looks good, thanks |
nix-prefetch-git: use fetchgit's naming heuristic
To be honest, I'd like to revert this, see NixOS/nix#904 (comment) for reasoning |
I'm not sure about the reasoning, do you mean that we are now getting different derivations between fetchgit and nix-prefetch-git because of this change ? Would it be possible to implement nix-prefetch-git using nix-repl + fetchgit and get rid of the difference once and for all ? |
They use the same script (minus some wrappers). I'd like to get the same hash as for |
I wouldn't be upset if you reverted the commit since the goal was to achieve exactly that :) |
This commit fixes #6651.
Before this change the
nix-prefetch-git
script would use a different storename than nix's
fetchgit
function. Because of that it was not possible touse
nix-prefetch-git
as a way to pre-populate the store (for example whenthe user it using private git dependencies that needs access to the ssh agent)