-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
fetchFromGitHub: add fetchSubmodules option #20518
Conversation
@rasendubi, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MarcWeber, @shlevy and @rbvermaa to be potential reviewers. |
This commit extends fetchFromGitHub with ability to fetch GitHub repositories with submodules, so we can use the function consistently with all GitHub repositories. Note it doesn't change the previous behavior.
ee67b3b
to
a80cacd
Compare
|
@Profpatsch, you might like it ;) |
Awesome! That fixes #15559 |
Actually, no, not this implementation. We can do fetchzip recursively to do this without using fetchgit. |
Anyway, I'm not super opposed to this version, but there are a few large git repos that I currently fetch via |
@copumpkin I have no idea how can I do that in general fashion now. Could you point me to the mentioned packages? |
Sorry, they're mostly in non-public projects, so not really. I just use |
} // passthruAttrs) | ||
else | ||
# We prefer fetchzip in cases we don't need submodules as the hash | ||
# is more stable in that case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could someone approve this? I'm starting to think the real reason is not hash stability but the speed and saving network usage.
It won't get slower, as the default value for |
I go into that a bit in the other ticket, fwiw. Either way this improves things, thanks. |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)This commit extends fetchFromGitHub with ability to fetch GitHub
repositories with submodules, so we can use the function consistently
with all GitHub repositories.
Note it doesn't change the previous behavior.