Skip to content

Commit 3095e72

Browse files
authored
fix dependency walker error message (#353)
1 parent d69577f commit 3095e72

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/poetry_plugin_export/walker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,12 @@ def get_locked_package(
249249
]
250250

251251
if not filtered_compatible_candidates:
252-
# TODO: Support this case:
253-
# https://github.com/python-poetry/poetry-plugin-export/issues/183
254252
raise DependencyWalkerError(
255253
f"The `{dependency.name}` package has the following compatible"
256254
f" candidates `{compatible_candidates}`; but, the exporter dependency"
257255
f" walker previously elected `{overlapping_candidates.pop()}` which is"
258-
f" not compatible with the dependency `{dependency}`. Please contribute"
259-
" to `poetry-plugin-export` to solve this problem."
256+
f" not compatible with the dependency `{dependency}`. Please relock"
257+
" with Poetry 2.0 or later to solve this issue."
260258
)
261259

262260
compatible_candidates = filtered_compatible_candidates

tests/test_walker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212

1313
def test_walk_dependencies_multiple_versions_when_latest_is_not_compatible() -> None:
14-
# TODO: Support this case:
15-
# https://github.com/python-poetry/poetry-plugin-export/issues/183
1614
with pytest.raises(DependencyWalkerError):
1715
walk_dependencies(
1816
dependencies=[

0 commit comments

Comments
 (0)