You are working on the python-poetry/poetry-core repository. The source code is checked out at /testbed at…
You are working on the python-poetry/poetry-core repository. The source code is checked out at /testbed at…: a task in SWE-Lego-RL-2699 (Harbor dataset). If an optional dependency is specified in project.optional-dependencies and a source is sepcified for that dependency in…
The task
If an optional dependency is specified in `[project.optional-dependencies]` and a source is sepcified for that dependency in `[tool.poetry.dependencies]`, then Poetry treats the dependency as non-optional in poetry.lock and when installing. For example, consider the following pyproject.toml file:
Part of Lego-X/Lego-RL-2699.