You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show a concise error message for missing version field (#9912)
## Summary
This now looks like:
```
error: Failed to parse: `pyproject.toml`
Caused by: TOML parse error at line 1, column 1
|
1 | [project]
| ^^^^^^^^^
`pyproject.toml` is using the `[project]` table, but the required `project.version` field is neither set nor present in the `project.dynamic` list
```
Closes#9910.
Copy file name to clipboardExpand all lines: crates/uv-workspace/src/pyproject.rs
+48-11
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ pub enum PyprojectTomlError {
35
35
#[error(transparent)]
36
36
TomlSchema(#[from] toml_edit::de::Error),
37
37
#[error("`pyproject.toml` is using the `[project]` table, but the required `project.name` field is not set")]
38
-
MissingName(#[source] toml_edit::de::Error),
38
+
MissingName,
39
+
#[error("`pyproject.toml` is using the `[project]` table, but the required `project.version` field is neither set nor present in the `project.dynamic` list")]
0 commit comments