uv/crates/uv-workspace/src
micolous 52870c587c
Fix incorrect error message when specifying `tool.uv.sources.(package).workspace` with other options (#11013)
## Summary

When a `pyproject.toml` `[tool.uv.sources.(package)]` section specifies
`workspace` and one or more of (`index`, `git`, `url`, `path`, `rev`,
`tag`, `branch`, `editable`), running `uv` to build or sync the package
gives the error:

```
cannot specify both `index` and `(parameter name)`
```

The error should actually say:

```
cannot specify both `workspace` and `(parameter name)`
```

## Test Plan

I ran `cargo test`, and all tests still passed.
2025-01-28 09:25:33 -05:00
..
dependency_groups.rs Store dependency groups separate from dependencies in lockfile (#10148) 2024-12-24 17:32:29 -05:00
lib.rs Detect nested workspace inside the current workspace and members with identical names (#9094) 2024-11-15 04:03:00 +00:00
pyproject.rs Fix incorrect error message when specifying `tool.uv.sources.(package).workspace` with other options (#11013) 2025-01-28 09:25:33 -05:00
pyproject_mut.rs Remove trailing commas before brackets (#10740) 2025-01-18 19:56:46 +00:00
workspace.rs Error when workspace contains conflicting Python requirements (#10841) 2025-01-22 17:22:52 +00:00