Skip to content
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

Confusing warning - resolution-strategy #8967

Closed
KasperZutterman opened this issue Nov 9, 2024 · 1 comment · Fixed by #8971
Closed

Confusing warning - resolution-strategy #8967

KasperZutterman opened this issue Nov 9, 2024 · 1 comment · Fixed by #8971
Assignees
Labels
bug Something isn't working error messages Messaging when something goes wrong

Comments

@KasperZutterman
Copy link
Contributor

Issue

Warning message contains --resolution-strategy, which is not a valid option.
It should be --resolution instead (docs).

Warning got added here: #5953

Example

pyproject.toml:

[project]
name = "test"
version = "0.0.1"
dependencies = [
    "urllib3",
]

Command:

uv pip compile pyproject.toml -o requirements.txt --resolution=lowest

Output:

⠙ Resolving dependencies... 
warning: The direct dependency `urllib3` is unpinned. Consider setting a lower bound when using `--resolution-strategy lowest` to avoid using outdated versions.
Resolved 1 package in 1.30s
# This file was autogenerated by uv via the following command:
#    uv pip compile pyproject.toml -o requirements.txt --resolution lowest
urllib3==0.3
    # via test (pyproject.toml)

Expected warning:

warning: The direct dependency `urllib3` is unpinned. Consider setting a lower bound when using `--resolution lowest` to avoid using outdated versions.

$ uv --version
uv 0.4.25 (97eb6ab4a 2024-10-21)
@charliermarsh
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error messages Messaging when something goes wrong
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants