Skip to content

Dependencies listed in a PEP735 dependency group do not contribute to lock file hash #10598

@dimbleby

Description

@dimbleby

Description

missing at

_relevant_project_keys: ClassVar[list[str]] = [
"requires-python",
"dependencies",
"optional-dependencies",
]

edit: actually dependency-groups is a top-level key in pyproject.toml, not a "project" key, so there is a little more to be done than simply updating that list

Workarounds

n/a

Poetry Installation Method

pipx

Operating System

n/a

Poetry Version

2.2.1

Poetry Configuration

n/a

Python Sysconfig

sysconfig.log
Paste the output of 'python -m sysconfig', over this line.

Example pyproject.toml

Poetry Runtime Logs

poetry-runtime.log
Paste the output of 'poetry -vvv <command>', over this line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/depsRelated to representing and locking dependencieskind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions