Skip to content

venv --clear behavior is insane #141961

@metamaterialsuit

Description

@metamaterialsuit

Bug report

Bug description:

# Add a code block here, if required

I don't know what to say besides who in their right mind thought executing rm -rf with no warning to the user was a good idea?

There is nothing in the documentation that even hints to the user that venv is going to do a thing so stupid that even non devs use rm -rf / as a joke.

A bug report was filed in 2022 on the old tracker, and, much to my endless amusement, it still exists today!

Please, please, I beg you, do SOMETHING about the default behavior. Play an ominous tone. Make the screen flash red in warning. Show a gif of a programmer crying.

Or just, you know, at least confirm that the user wants you to indiscriminately and recursively delete everything.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtopic-venvRelated to the venv moduletype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions