Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when adding a lib used by a dependency from git #7760

Closed
PakitoSec opened this issue Apr 2, 2023 · 3 comments
Closed

Infinite loop when adding a lib used by a dependency from git #7760

PakitoSec opened this issue Apr 2, 2023 · 3 comments
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@PakitoSec
Copy link

Hi,

  • Poetry version: 1.4.1
  • Python version: 3.10.4
  • OS version and name: macOS 13.2.1

Issue

Infinite loop when I try to add LibUtil to MainPackage:

  • MainPackage depends on LibA (Lib A is already added via poetry). LibA depends on LibUtil.
  • I want to add LibUtil as a direct dependency of MainPackage.
  • I get an infinite loop with conflict while adding LibUtil to MainPackage.

Command:

poetry -vvv add git+https://github.com/XXX/LibUtil#master

Output:

   1: conflict: LibA (1.2) depends on LibUtil (0.3.0)
   1: ! LibA (1.2) @ git+https://github.com/XXX/LibA@master is partially satisfied by not LibA (1.2) @ git+https://github.com/XXX/LibA@master
   1: ! which is caused by "LibA (1.2) @ git+https://github.com/XXX/LibA@master depends on LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master"
   1: ! thus: LibA (1.2) @ git+https://github.com/XXX/LibA@master requires LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master
   1: ! LibA (1.2) @ git+https://github.com/XXX/LibA@master is partially satisfied by not LibA (1.2) @ git+https://github.com/XXX/LibA@master
   1: ! which is caused by "LibA (1.2) @ git+https://github.com/XXX/LibA@master depends on LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master"
   1: ! thus: LibA (1.2) @ git+https://github.com/XXX/LibA@master requires LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master
   1: ! LibA (1.2) @ git+https://github.com/XXX/LibA@master is partially satisfied by not LibA (1.2) @ git+https://github.com/XXX/LibA@master
   1: ! which is caused by "LibA (1.2) @ git+https://github.com/XXX/LibA@master depends on LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master"
   1: ! thus: LibA (1.2) @ git+https://github.com/XXX/LibA@master requires LibUtil (0.3.0) @ git+https://github.com/XXX/LibUtil@master
....

How can i solve this problem please ?

@PakitoSec PakitoSec added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Apr 2, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Apr 2, 2023

if you don't provide a way to reproduce the problem then it's likely that no-one can help you.

This might be a duplicate of #7398 with a proposed fix at #7405

@dimbleby
Copy link
Contributor

no reply, nothing to be done except assume it's a duplicate and close this out

@radoering radoering added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged labels May 5, 2023
@radoering radoering closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants