anaconda / anaconda-project

Tool for encapsulating, running, and reproducing data science projects
https://anaconda-project.readthedocs.io/en/latest/
Other
221 stars 88 forks source link

Move the refresh logic deeper into prepare #297

Closed mcg1969 closed 3 years ago

mcg1969 commented 3 years ago

I moved the --refresh logic—which removes the conda environment for re-creation—into the prepare step. This consolidated and simplified some of the logic. But the truth is that really the refresh logic should somehow work its way into the requirements and provider code. Specifically, when a refresh is requested, the requirements analysis should state that the environment needs to be re-created, and the provider should do it. But for now this is a lot closer.