Poetry: Duplicate entries when running poetry update --dry-run

Created on 6 Oct 2020  路  2Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] 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 command poetry update --dry-run duplicates the output of packages as seen below.
image

I first noticed it in poetry 1.1.0. I could reproduce it on different machines with the attached gist.

Bug Good First Issue UX

All 2 comments

Hi, can I take this issue? I think I found the problem, when the _dry_run attribute is set, the executor writes after passing the _should_write_operation check here and then again inside _do_execute_operation here. _dry_run should be removed from one of those checks.

@ahlaw most definitey! Feel free to create a draft PR for this if you want to discuss a solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeremy886 picture jeremy886  路  3Comments

Euphorbium picture Euphorbium  路  3Comments

AWegnerGitHub picture AWegnerGitHub  路  3Comments

thmo picture thmo  路  3Comments

jbarlow83 picture jbarlow83  路  3Comments