Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Package extras are not removed when install command is given --sync option #7364

Open
4 tasks done
zyzzyxdonta opened this issue Jan 18, 2023 · 0 comments
Open
4 tasks done
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@zyzzyxdonta
Copy link

zyzzyxdonta commented Jan 18, 2023

  • 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 poetry install is executed with the --sync option, currently installed extras are not removed:

[david:/tmp/tmp.eORMnPgjG6] $ poetry install
Creating virtualenv test-qNG81csJ-py3.11 in /home/david/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (0.2s)

Writing lock file

Package operations: 5 installs, 0 updates, 0 removals

  • Installing certifi (2022.12.7)
  • Installing charset-normalizer (3.0.1)
  • Installing idna (3.4)
  • Installing urllib3 (1.26.14)
  • Installing requests (2.28.2)
[david:/tmp/tmp.eORMnPgjG6] 4s $ poetry install --extras toml
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing tomli (2.0.1)
[david:/tmp/tmp.eORMnPgjG6] $ poetry install --sync
Installing dependencies from lock file

No dependencies to install or update
[david:/tmp/tmp.eORMnPgjG6] $ poetry install
Installing dependencies from lock file

Package operations: 0 installs, 0 updates, 1 removal

  • Removing tomli (2.0.1)

I believe that this is not in line with the documentation which states:

Any extras not selected for install are always removed, regardless of --sync.

@zyzzyxdonta zyzzyxdonta added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant