Skip to content

bug: pyproject.toml error snippet uses wrong file #398

@baszalmstra

Description

@baszalmstra

When there is issue with a pyproject.toml and the parser returns an error snippet it uses the pixi.toml as the snippet file instead of the pyproject.toml

See [Failed to read contents for label here (offset: 540, length: 10): OutOfBounds] in

Error:   × failed to solve requirements of environment 'default' for platform 'win-64'
  ├─▶   × failed to extract metadata for package 'parcels'
  │
  ╰─▶   × Failed to parse recipe

      Error:
        × failed to parse SPDX license: 'LICENSE.md', because: unknown term
        │ See <https://spdx.org/licenses> for the list of valid licenses.
        │ Use 'LicenseRef-<MyLicense>' if you are using a custom license.
        [Failed to read contents for label `here` (offset: 540, length: 10): OutOfBounds]

in this reproducer:

https://github.com/baszalmstra/pixi-build-python-broken-license

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonRelated to the Python build backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions