mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Improve error messages
This commit is contained in:
parent
7301a350f9
commit
7435236773
4 changed files with 4 additions and 42 deletions
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
source: crates/puffin-cli/tests/pip_compile.rs
|
||||
info:
|
||||
program: puffin
|
||||
args:
|
||||
- pip-compile
|
||||
- pyproject.toml
|
||||
- "--cache-dir"
|
||||
- /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpHT5k4n
|
||||
env:
|
||||
VIRTUAL_ENV: /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpS0cCaw/.venv
|
||||
---
|
||||
success: false
|
||||
exit_code: 2
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Conflicting versions for package `django`: ==3.0 is incompatible with >5.0
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
source: crates/puffin-cli/tests/pip_compile.rs
|
||||
info:
|
||||
program: puffin
|
||||
args:
|
||||
- pip-compile
|
||||
- pyproject.toml
|
||||
- "--cache-dir"
|
||||
- /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpgsozkO
|
||||
env:
|
||||
VIRTUAL_ENV: /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpwjg05J/.venv
|
||||
---
|
||||
success: false
|
||||
exit_code: 2
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Conflicting versions for package `django`: ==5.0b1 is incompatible with ==5.0a1
|
||||
|
|
@ -6,14 +6,14 @@ info:
|
|||
- pip-compile
|
||||
- pyproject.toml
|
||||
- "--cache-dir"
|
||||
- /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpQZyk8c
|
||||
- /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpAFfkaN
|
||||
env:
|
||||
VIRTUAL_ENV: /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpOV0S3e/.venv
|
||||
VIRTUAL_ENV: /var/folders/bc/qlsk3t6x7c9fhhbvvcg68k9c0000gp/T/.tmpOGc5nS/.venv
|
||||
---
|
||||
success: false
|
||||
exit_code: 2
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Conflicting versions for package `django`: >=4.0 is incompatible with <=3.0
|
||||
error: Conflicting versions requested for package `django`: `>=4.0` is incompatible with `<=3.0`
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ pub enum ResolveError {
|
|||
#[error("Conflicting URLs for package `{0}`: {1} and {2}")]
|
||||
ConflictingUrls(PackageName, String, String),
|
||||
|
||||
#[error("Conflicting versions for package `{0}`: {1} is incompatible with {2}")]
|
||||
#[error("Conflicting versions requested for package `{0}`: `{1}` is incompatible with `{2}`")]
|
||||
ConflictingPackageVersions(PackageName, Range<PubGrubVersion>, Range<PubGrubVersion>),
|
||||
|
||||
#[error("Package `{0}` attempted to resolve via URL: {1}. URL dependencies must be expressed as direct requirements or constraints. Consider adding `{0} @ {1}` to your dependencies or constraints file.")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue