Skip to content

Private repo causes transient extra dependencies to be tossed #2300

Closed
python-poetry/poetry-core
#78

Description

@madig
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

The presence of a secondary package index and a package from there as a dependency messes with dependency resolution.

To reproduce:

  1. poetry new test && cd test
  2. Insert content of https://gist.github.com/madig/de961d21c8f796b4fc86d984dece0fd4 into pyproject.toml
  3. poetry install -- note how this installs appdirs, fs, pytz and six.
  4. poetry update -- removes these packages again when it shouldn't.
  5. Comment out the test repository and the poetry-resolver-bug-test package
  6. poetry update reinstalls appdirs and friends
  7. Reenable repo and package
  8. poetry update -- installs the poetry-resolver-bug-test package but leaves appdirs, etc. alone
  9. Redoing poetry update then tosses them again when it shouldn't.

In my actual package, the toml package (via isort[pyproject]) also gets tossed out, but I can't reproduce this here easily.

Activity

  1. added
    kind/bugSomething isn't working as expected
    on Apr 13, 2020
  2. github-actions commented on Mar 3, 2024

    @github-actions

    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.

  3. locked as resolved and limited conversation to collaborators on Mar 3, 2024
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

    kind/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