Skip to content

poetry env remove - exit code 1 #3617

@steveYeah

Description

@steveYeah
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

By raising an exception in EnvManager::Remove when the venv does not exist, poetry will error out, showing the exception.

It would be nicer for scripting the use of Poetry in Makefiles and the like, if poetry env remove <venv> just no-oped when venv did not exist, as it's no real drama if the thing you want to delete doesn't exist.

I use this as part of a clean target within a project Makefile, and as this raises an exception, it will exist with status code 1, meaning the rest of the target is not executed

Many thanks!
@steveYeah

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions