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

Support conda lock files (from conda-lock) #7772

Closed
humitos opened this issue Dec 21, 2020 · 1 comment
Closed

Support conda lock files (from conda-lock) #7772

humitos opened this issue Dec 21, 2020 · 1 comment
Labels
Feature New feature Needed: design decision A core team decision is required

Comments

@humitos
Copy link
Member

humitos commented Dec 21, 2020

We received a request to support conda lock files:

Instead of supporting conda-lock, would it be possible to install an environment using lock files? For instance, would it be possible to add an additional (optional) field to the configuration asking if the provided yaml file is a lock file ? If the flag is set then conda/mamba would use

conda create --file environment.yml -n env_name

and if not set,

conda env create -f environment.yml -n env_name

The default value can be set to False to maintain backwards compatibility.

Typically lock files are created by users and checked-in to version control for reproducibility. So if someone already has the lock file generated, it would make the RTD build job a lot easier (both conda/mamba) to just install the requirements from the lock file. This would also reduce the resource usage on the build server and improve the speed and stability of the build process.

conda-lock was mentioned in #6815 (comment) but when I tried it calling conda-lock -f ... failed. However, it seems that we don't need to depend on that conda-lock, but the user just need to use the lock file generated by that command as an environment.yml file. If the only change required to support conda lock files is just to remove env from that command and change -f by --file, we could create a feature flag for now that we can apply to these projects.

@humitos humitos added the Feature New feature label Dec 21, 2020
@humitos humitos added the Needed: design decision A core team decision is required label Mar 1, 2021
@humitos
Copy link
Member Author

humitos commented Mar 21, 2023

This is not gonna happen. At least for now 😄 . Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

1 participant