conda / conda-libmamba-solver

The libmamba based solver for conda.
https://conda.github.io/conda-libmamba-solver/
Other
204 stars 24 forks source link

Include one-time confirmation the first time an experiment is being used #73

Closed kenodegard closed 1 year ago

kenodegard commented 2 years ago

Checklist

What is the idea?

The very first time a user runs a conda command that uses the libmamba solver it would be nice to include a confirmation message after the experimental blurb. This confirmation cannot be skipped with -y.

Why is this needed

It's not unreasonable for users to get excited and try to run the libmamba solver without thinking through the potential dangers. While we already include the experimental warning blurb if the user runs conda create/conda install with -y then they may not have time to respond before the env is modified.

What should happen?

Include a simple blurb after the experimental blurb "Do you wish to continue?". This blurb should only occur the very first time the libmamba solver is used so we'd want some way to remember that the blurb has been accepted.

Additional Context

No response

jaimergp commented 2 years ago

I guess we'll need a new context parameter that can get set in the user's .condarc automatically after that first prompt. Something like context.experimental_solver_prompt.

jezdez commented 2 years ago

Reopening given conda/conda#11303 and the quick-fix in conda/conda#11304. We need to look at this more holistically with regard to a experiment feature flipper instead of just this case that triggered a problem in the error handling code in conda.

jezdez commented 1 year ago

I'm closing this after I moved this from the main conda repo since we're going to ship a non-experimental version of the plugin soon.