-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- 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: macOS Big Sur Version 11.2
- Python version: Python 3.8.3
- Poetry version: Poetry version 1.1.4
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/samestep/7fab4df48b7b4f89ea5fe5c29f7d4692
Issue
As the title states, running poetry remove --dry-run
modifies poetry.lock
. Example:
poetry new remove-dry-run-bug
cd $_
sed -i '' 's/^authors = \[".*"\]/authors = []/' pyproject.toml
cat pyproject.toml # see gist
poetry add pyyaml
cp poetry.lock{,.old}
poetry remove --dry-run pyyaml
git diff --no-index poetry.lock{.old,} | tee poetry.lock.diff # see gist
This causes subsequent commands (such as poetry show
) to fail.
dimitrismistriotis
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected