Skip to content
New issue

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

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

Already on GitHub? # to your account

poetry add --dry-run modifies poetry.lock #4489

Closed
2 of 3 tasks
matthewhughes934 opened this issue Sep 8, 2021 · 2 comments
Closed
2 of 3 tasks

poetry add --dry-run modifies poetry.lock #4489

matthewhughes934 opened this issue Sep 8, 2021 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@matthewhughes934
Copy link

  • 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).
  • OS version and name: Debian GNU/Linux 10 (buster)
  • Poetry version: 1.1.8 and 1.2.0a2
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Basic reproduction (most output skipped for brevity)

$ poetry new poetry-demo
$ cd poetry-demo
$ poetry lock
# using git just to demonstrate diff
$ git init && git add pyproject.toml poetry.lock && git commit -m 'Lock the dependencies'
$ poetry add --dry-run requests
Using version ^2.26.0 for requests

Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

<--- snip --->
$ git diff --name-only 
poetry.lock

I would expect --dry-run to change nothing but poetry.lock is modified

@matthewhughes934 matthewhughes934 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 8, 2021
@matthewhughes934
Copy link
Author

I think this is just duplicating #3766

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

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 Mar 2, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants