diff --git a/crates/uv-resolver/src/resolver/mod.rs b/crates/uv-resolver/src/resolver/mod.rs index fad0c71be..0cb914415 100644 --- a/crates/uv-resolver/src/resolver/mod.rs +++ b/crates/uv-resolver/src/resolver/mod.rs @@ -2785,7 +2785,7 @@ impl ForkState { warn_user_once!( "The direct dependency `{name}` is unpinned. \ Consider setting a lower bound when using `--resolution lowest` \ - to avoid using outdated versions.", + or `--resolution lowest-direct` to avoid using outdated versions.", name = package.name_no_root().unwrap(), ); } diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index c159cdbd1..061577e8d 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -7036,15 +7036,15 @@ fn lock_unsafe_lowest() -> Result<()> { "#, )?; - uv_snapshot!(context.filters(), context.lock().arg("--resolution").arg("lowest-direct"), @r###" + uv_snapshot!(context.filters(), context.lock().arg("--resolution").arg("lowest-direct"), @r" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - warning: The direct dependency `iniconfig` is unpinned. Consider setting a lower bound when using `--resolution lowest` to avoid using outdated versions. + warning: The direct dependency `iniconfig` is unpinned. Consider setting a lower bound when using `--resolution lowest` or `--resolution lowest-direct` to avoid using outdated versions. Resolved 2 packages in [TIME] - "###); + "); // Re-run with `--locked`. uv_snapshot!(context.filters(), context.lock().arg("--resolution").arg("lowest-direct").arg("--locked"), @r###" diff --git a/crates/uv/tests/it/pip_compile.rs b/crates/uv/tests/it/pip_compile.rs index 71fd472d4..da7cfa6d2 100644 --- a/crates/uv/tests/it/pip_compile.rs +++ b/crates/uv/tests/it/pip_compile.rs @@ -12620,7 +12620,7 @@ fn compile_index_url_unsafe_lowest() -> Result<()> { .arg("--extra-index-url") .arg("https://test.pypi.org/simple") .arg("requirements.in") - .arg("--no-deps"), @r###" + .arg("--no-deps"), @r" success: true exit_code: 0 ----- stdout ----- @@ -12630,9 +12630,9 @@ 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 lowest` to avoid using outdated versions. + warning: The direct dependency `anyio` is unpinned. Consider setting a lower bound when using `--resolution lowest` or `--resolution lowest-direct` to avoid using outdated versions. Resolved 1 package in [TIME] - "### + " ); Ok(()) @@ -14960,7 +14960,7 @@ fn compile_lowest_extra_unpinned_warning() -> Result<()> { .arg("--index-url") .arg(packse_index_url()) .arg(requirements_in.path()) - .env_remove(EnvVars::UV_EXCLUDE_NEWER), @r###" + .env_remove(EnvVars::UV_EXCLUDE_NEWER), @r" success: true exit_code: 0 ----- stdout ----- @@ -14978,9 +14978,9 @@ fn compile_lowest_extra_unpinned_warning() -> Result<()> { # all-extras-required-a ----- stderr ----- - warning: The direct dependency `all-extras-required-a` is unpinned. Consider setting a lower bound when using `--resolution lowest` to avoid using outdated versions. + warning: The direct dependency `all-extras-required-a` is unpinned. Consider setting a lower bound when using `--resolution lowest` or `--resolution lowest-direct` to avoid using outdated versions. Resolved 3 packages in [TIME] - "### + " ); Ok(())