-
Notifications
You must be signed in to change notification settings - Fork 605
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
--resolution lowest
with uv sync
needs to discard preferences
#5226
Comments
I don't consider this a bug, but we can consider changing it. |
I don't think discarding preferences alone would change this. We'd also have to skip the "resolve from lockfile" behavior. |
Perhaps we always do both these things if |
I can try it. |
I guess arguably |
Do we need to record the settings used for the resolution in |
The downside of that approach is that it wouldn't work for |
No obviously-good solution here... Options are something like:
I suspect we need to do the latter, though. |
We probably want to record the |
Working on that change (adding resolution options to the lockfile). |
I wonder if, eventually, we'd want to enable projects to have multiple locks for this purpose. Or enable the lockfile to contain multiple entries if they resolve with different input settings. |
It seems like it depends on the use-case. Are you going to always run your project in |
Are you commenting on the originating issue here or my previous comment? |
The previous comment. |
Currently, when switching to
uv sync --resolution lowest
fromuv sync
, nothing changes, because we're using the existing preferences. This breaks the use case for--resolution lowest
.We should instead discard the preferences when using
--resolution lowest
or--resolution lowest-direct
, since these two modes are not for regular development, but for testing your dependency specifiers.The text was updated successfully, but these errors were encountered: