During install or sync ctrl+c only cancels single package installation

Open
#169 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
cli

Research direction

Reproduce the behavior by running poetry install and poetry sync on macOS, then trace the install and sync command entry points to find how Ctrl+C is handled during package installation. Done means Ctrl+C cancels the entire installation or synchronization process rather than only the current package, with coverage for both commands.

Written by the indexing model from the issue text.

Description

While running poetry install or poetry sync on macOS, ctrl + c will only cancel the installation of the current package being installed. This can be an issue for projects with a longer list of packages if you want to cancel the entire installation.

Won't assume but I would personally prefer to cancel the entire installation process vs stopping (skipping?) a single installation by inputting ctrl + c at the right time. Instead expecting skipping of a single(s) installation using the grouping and the --only or --with functionality.

Noting that this issue existed in poetry's old repo but was listed for windows, so this might not be platform specific.

platform: macOS sequoia 15.7.4
poetry ver: 2.3.3
python ver: have experienced this against 3.10.13 and 3.12.13)

Dominant language
Python
Stars
255
Forks
65
Avg merge
2h 48m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-poetry/install.python-poetry.org

All issues in python-poetry/install.python-poetry.org

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.