docs: Clarify installation of lock file (#3686)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
Julien Jerphanion 2024-12-11 14:30:40 +01:00 committed by GitHub
parent 99290aeebf
commit dd5abc39b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -72,7 +72,12 @@ See the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_gu
`micromamba` can be used to install lock files generated by [conda-lock](https://conda.github.io/conda-lock/) without having to install `conda-lock`.
Simply invoke e.g. `micromamba create -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or `*-lock.yaml`.
Simply invoke `micromamba create` with the `-f` option, providing an environment lockfile whose name ends with
`-lock.yml` or `-lock.yaml`; for instance:
```bash
micromamba create -n my-env -f conda-lock.yml
```
### setup-micromamba (setup-miniconda replacement)

View File

@ -268,6 +268,8 @@ These files are named ``conda-lock.yml`` by default, and look like:
category: main
optional: false
In order to YAML files to be considered as ``conda-lock`` files, their name must ends with ``-lock.yml`` or ``-lock.yaml``.
To install such a file with ``micromamba``, just pass the ``-f`` flag again:
.. code::