798cc7bf3c
## Summary Added the actual error message to the warning when uv fails to parse `pyproject.toml`. Resolves https://github.com/astral-sh/uv/issues/5934 ## Test Plan Took the case from the issue: - have `pyproject.toml` which contains ``` [tool.uv] foobar = false ``` - ``` $ uv venv --preview -v ``` - Expect the message that contains the actual problem in the `pyproject.toml` like: ``` warning: Failed to parse `pyproject.toml` during settings discovery: unknown field `foobar`; skipping... ```
41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[package]
|
|
name = "uv-settings"
|
|
version = "0.0.1"
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
distribution-types = { workspace = true, features = ["schemars"] }
|
|
install-wheel-rs = { workspace = true, features = ["schemars", "clap"] }
|
|
pep508_rs = { workspace = true }
|
|
pypi-types = { workspace = true }
|
|
uv-configuration = { workspace = true, features = ["schemars", "clap"] }
|
|
uv-fs = { workspace = true }
|
|
uv-macros = { workspace = true }
|
|
uv-normalize = { workspace = true, features = ["schemars"] }
|
|
uv-options-metadata = { workspace = true }
|
|
uv-python = { workspace = true, features = ["schemars", "clap"] }
|
|
uv-resolver = { workspace = true, features = ["schemars", "clap"] }
|
|
uv-warnings = { workspace = true }
|
|
|
|
clap = { workspace = true }
|
|
dirs-sys = { workspace = true }
|
|
fs-err = { workspace = true }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true }
|
|
textwrap = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
toml = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
[package.metadata.cargo-shear]
|
|
ignored = ["uv-options-metadata", "clap"]
|