mirror of https://github.com/astral-sh/uv
Fix references to `--resolution-strategy` in error message output (#8971)
Closes https://github.com/astral-sh/uv/issues/8967.
This commit is contained in:
parent
f508ef038c
commit
8a3e5d43e6
|
|
@ -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."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
"###
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue