-
Notifications
You must be signed in to change notification settings - Fork 995
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
Very large lockfile and clean up #9735
Comments
It's hard to say without the input pyproject.toml; A lot of |
Unfortunately I cannot share the whole pyproject.toml. Thanks for the pointer at environments, most of the lockfile resolution-markers entries were for darwin/linux, so resolving only for linux should avoid that this happens again. I am still curious if there could be a way to clean up the lockfile like we did but in |
Does |
My guess is that |
Separately, do you have any |
Yes, it was containing many lines like
|
Yes, we have a conflict defined between two extra, |
Unfortunately I cannot, but I can run what you want on our project. Even though I am not sure I can reproduce the growing lock file again, I would have to add some random package to force resolution a couple of times. |
@charliermarsh it looks like bumping to 0.5.8 and deleting our hack for accelerate #9734 also simplifies the resolution markers in our uv.lock file. So maybe this issue is non reproducible at main. |
We noticed that our
uv.lock
file grows in size, up to 2.5MB and 35k lines with a lot ofresolution-markers
and the time touv lock
explodes to more than 30 min and sometimes OOM. We have a pretty bad hygien for ourpyproject.toml
with a lot of*
versions and some conflicts so the resolver might have a hard time.We came up with a simple script to extract all the versions from the lockfile and copy paste them into pyproject.toml, then rerun
lock
and revert pyproject right after. This speeds up the follow uplock
calls and make the lock file only 0.4MB big. Is it expected behavior? Is our cleanup script actually something that exists as part of theuv
command?Thank you for your help.
The text was updated successfully, but these errors were encountered: