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.
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.