Skip to content

resolution.overrides may lead to an incompatible locked group being published #8

Description

@sigma67

Describe the bug

when tool.pdm.resolution.overrides is set to a range incompatible with project.dependencies for that dependency, the optional-dependencies group locked may be unusable in the resulting .whl file.

To Reproduce
Steps to reproduce the behavior:

  1. Set i.e. tool.pdm.resolution.overrides to sphinx<7 and project.dependencies to sphinx>7.
  2. sphinx==6.2.1 will be locked by pdm
  3. build the wheel using pdm build
  4. install the wheel using pip install mypkg[locked] - will yield ResolutionImpossible

Desired behavior
pdm build shall be aborted with an error stating that the locked dependency is incompatible with project.dependencies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions