Skip to content

Improve error message when using multiple sources for a package without markers #14144

Open
@zanieb

Description

@zanieb

e.g.,

[tool.uv.sources]
somepackage = [
    { path = "../somepackage", editable = true }
    { index = "pypi" }, 
]

Shows the error

error: Failed to parse: `pyproject.toml`
  Caused by: TOML parse error at line 81, column 9
   |
81 | somepackage = [
   |         ^
Source markers must be disjoint, but the following markers overlap: `true` and `true`.

hint: replace `true` with `python_version < '0'`.

We shouldn't be showing implicit true markers, and the hint is unhelpful.

Originally posted by @pirate in #14136 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesMessaging when something goes wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions