mirror of https://github.com/mamba-org/mamba.git
docs: Clarify installation of lock file (#3686)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
parent
99290aeebf
commit
dd5abc39b4
|
@ -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)
|
||||
|
||||
|
|
|
@ -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::
|
||||
|
|
Loading…
Reference in New Issue