Fix references to `--resolution-strategy` in error message output (#8971)

Closes https://github.com/astral-sh/uv/issues/8967.
This commit is contained in:
Charlie Marsh 2024-11-09 08:54:49 -05:00 committed by GitHub
parent f508ef038c
commit 8a3e5d43e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -163,7 +163,7 @@ impl Diagnostic for ResolutionDiagnostic {
format!(
"The transitive dependency `{name}` is unpinned. \
Consider setting a lower bound with a constraint when using \
`--resolution-strategy lowest` to avoid using outdated versions."
`--resolution lowest` to avoid using outdated versions."
)
}
}

View File

@ -2212,7 +2212,7 @@ impl ForkState {
if !has_url && missing_lower_bound && strategy_lowest {
warn_user_once!(
"The direct dependency `{package}` is unpinned. \
Consider setting a lower bound when using `--resolution-strategy lowest` \
Consider setting a lower bound when using `--resolution lowest` \
to avoid using outdated versions."
);
}

View File

@ -7814,9 +7814,9 @@ fn lock_warn_missing_transitive_lower_bounds() -> Result<()> {
----- stderr -----
Resolved 6 packages in [TIME]
warning: The transitive dependency `colorama` is unpinned. Consider setting a lower bound with a constraint when using `--resolution-strategy lowest` to avoid using outdated versions.
warning: The transitive dependency `packaging` is unpinned. Consider setting a lower bound with a constraint when using `--resolution-strategy lowest` to avoid using outdated versions.
warning: The transitive dependency `iniconfig` is unpinned. Consider setting a lower bound with a constraint when using `--resolution-strategy lowest` to avoid using outdated versions.
warning: The transitive dependency `colorama` is unpinned. Consider setting a lower bound with a constraint when using `--resolution lowest` to avoid using outdated versions.
warning: The transitive dependency `packaging` is unpinned. Consider setting a lower bound with a constraint when using `--resolution lowest` to avoid using outdated versions.
warning: The transitive dependency `iniconfig` is unpinned. Consider setting a lower bound with a constraint when using `--resolution lowest` to avoid using outdated versions.
"###);
Ok(())

View File

@ -11474,7 +11474,7 @@ fn compile_index_url_unsafe_lowest() -> Result<()> {
# via -r requirements.in
----- stderr -----
warning: The direct dependency `anyio` is unpinned. Consider setting a lower bound when using `--resolution-strategy lowest` to avoid using outdated versions.
warning: The direct dependency `anyio` is unpinned. Consider setting a lower bound when using `--resolution lowest` to avoid using outdated versions.
Resolved 1 package in [TIME]
"###
);
@ -13184,7 +13184,7 @@ fn lowest_fork() -> Result<()> {
----- stderr -----
Resolved 3 packages in [TIME]
warning: The transitive dependency `setuptools` is unpinned. Consider setting a lower bound with a constraint when using `--resolution-strategy lowest` to avoid using outdated versions.
warning: The transitive dependency `setuptools` is unpinned. Consider setting a lower bound with a constraint when using `--resolution lowest` to avoid using outdated versions.
"###
);