Skip to content

Possible regression with duplicating dependency with extra #129

@tnydg99

Description

@tnydg99
  • Poetry version: 1.2.1

  • Python version: 3.8.9

  • OS version and name: macOS 12.6

  • pyproject.toml: https://gist.github.com/tnydg99/0b018320ae7d2a6600a81f9d2d04d92c

  • I am on the latest stable Poetry version, installed using a recommended method.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • I have consulted the FAQ and blog for any relevant entries or release notes.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

When using v1.2.x of Poetry, the export command seems to be duplicating the same dependency, but with lines containing extras and lines not containing extras in the output requirements.txt file. In this example, google-api-core is one that is duplicate with both google-api-core and google-api-core[grpc]. This happens with or without including hashes. This is behavior specific to v1.2.x, as 1.1.x (up to latest release of 1.1.15) does not replicate this behavior.

Attached comparable requirements.txt files

requirements_115.txt
requirements_121.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions