-
Notifications
You must be signed in to change notification settings - Fork 67
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
respect shallow/grafted nixpkgs repositories #267
Comments
I don't see a way around this. It currently uses |
For me the entire history is just 1.3 GB big. We could probably modify the fetch commands to only fetch what we really need but it is a pain to work with shallow repositories since certain things done with the history will just fail in some situations and executing multiple fetches for every user is probably slowing down things more. |
huh... do you have some sort of compression enabled? mine seems to be a lot larger
|
Try
|
what about an arbitrarily large but still much smaller than the whole repository amount? for example, fetching only the last 10000 commits? waiting 10 minutes is still a lot better than waiting 2 hours, and people using a shallow clone are likely to have a a slow network connection anyways. |
Github offers a ref named I believe nixpkgs-review can make use of
https://github.com/actions/checkout uses this ref for pull request, https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request |
Something like:
|
if you attempt to nixpkgs-review pr on a shallow copy of nixpkgs, it will try to download the entire ~4gb of git history
The text was updated successfully, but these errors were encountered: