diff --git a/crates/uv-distribution-types/src/resolution.rs b/crates/uv-distribution-types/src/resolution.rs index 6ec6edce3..5c61a1e06 100644 --- a/crates/uv-distribution-types/src/resolution.rs +++ b/crates/uv-distribution-types/src/resolution.rs @@ -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." ) } } diff --git a/crates/uv-resolver/src/resolver/mod.rs b/crates/uv-resolver/src/resolver/mod.rs index 5c362342c..e1e0c6c6d 100644 --- a/crates/uv-resolver/src/resolver/mod.rs +++ b/crates/uv-resolver/src/resolver/mod.rs @@ -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." ); } diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index 2fd30cf16..dbbc91fdf 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -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(()) diff --git a/crates/uv/tests/it/pip_compile.rs b/crates/uv/tests/it/pip_compile.rs index e4c5bc796..e53fea97b 100644 --- a/crates/uv/tests/it/pip_compile.rs +++ b/crates/uv/tests/it/pip_compile.rs @@ -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. "### );