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
"conda env remove" will delete a directory named like the environment #3814
Comments
Note that this happens only if the environment does not exist. Extended example: mkdir -p test/i-do-not-want-to-delete-this-dir
conda create -n i-do-not-want-to-delete-this-dir python
cd test
# run this, the environment gets removed and the directory is not touched
conda env remove -n i-do-not-want-to-delete-this-dir
# run it again, the directory is removed
conda env remove -n i-do-not-want-to-delete-this-dir |
I just got burned by this. One of my team speculated that it might be a consequence of some legacy local-folder-environment support, but whether that's true or not it seems needlessly dangerous in practice. |
fix #3814 don't remove directory that's not a conda environment
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
This is, I think, a very unfortunate bug of conda-env:
conda goes wild and deletes the
i-do-not-want-to-delete-this-dir
directory.I'm on these versions of conda/conda-env:
The text was updated successfully, but these errors were encountered: