mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.57k stars 343 forks source link

Possible to disallow a version without making it a dependency? #3281

Open calebzulawski opened 2 months ago

calebzulawski commented 2 months ago

If I have a broken package e.g. foo 1.2.3, is there a way (maybe in condarc/mambarc?) to exclude that from solving, without making it a dependency? foo !=1.2.3 works when it's already a dependency, but if it's not a dependency, it adds it unnecessarily.

I think this is similar to constrains in a package, except I would like to avoid making a new channel/package.