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

conda remove doesn't complain if only some of the packages don't exist #2154

Closed
ijstokes opened this issue Mar 1, 2016 · 2 comments · Fixed by #7135
Closed

conda remove doesn't complain if only some of the packages don't exist #2154

ijstokes opened this issue Mar 1, 2016 · 2 comments · Fixed by #7135
Labels
locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type

Comments

@ijstokes
Copy link

ijstokes commented Mar 1, 2016

If I do conda remove foo bar and neither of them are in the current environment then I get an error. However if I do conda remove foo bar and foo is present but bar is not then foo gets removed but there is no error or warning that bar wasn't there and was not removed. I discovered this because I misunderstood the behavior of the --features flag, so it also applies to removing features.

I would suggest that a warning is required as a minimum, and perhaps it should be an error to be "symmetric" with a conda install foo bar where foo exists to be installed but bar does not (which just reports an error, and does not install anything).

@kalefranz kalefranz added the type::bug describes erroneous operation, use severity::* to classify the type label Mar 10, 2016
@kalefranz kalefranz added the source::anaconda created by members of Anaconda, Inc. label May 12, 2017
@conda-bot conda-bot added the type::bug describes erroneous operation, use severity::* to classify the type label Jan 31, 2018
@marcelotrevisani
Copy link
Member

I created the PR #7135 to fix that.

Could you please verify the implementation?

kalefranz added a commit that referenced this issue Apr 13, 2018
fix #2154 conda remove should complain if requested removals don't exist
kalefranz pushed a commit to kalefranz/conda that referenced this issue Apr 13, 2018
Bug fix about the Issue # 2154. With this implementation Conda raises
an exception when the user try to remove an non-existent package.
@github-actions
Copy link

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.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 13, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants