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

remove: improve error message when trying to remove a package from a project without any dependencies #9918

Merged

Conversation

radoering
Copy link
Member

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Just a special case, I noticed while trying different commands with a pyproject.toml without a tool.poetry section.

When trying to remove a package from a project without any dependencies, the following message is displayed for poetry remove foo:

without PR: The dependency group "main" does not exist.

with PR: The following packages were not found: foo

@radoering radoering force-pushed the improve-poetry-remove-error-message branch from 0c757ac to ee3c26c Compare December 23, 2024 19:54
@radoering radoering enabled auto-merge (squash) December 23, 2024 19:55
@radoering radoering merged commit a7079ac into python-poetry:main Dec 23, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants