Open qmarcou opened 1 month ago
@mariusvniekerk, is there any reason not to deprecate all the dev
related flags on conda-lock install
and conda-lock render
? It seems to me like --extras dev
is equivalent, and much less confusing.
And I think we should readd --dev-dependencies
with a deprecation error.
Checklist
What happened?
After building a lock file from a pyproject.toml with optional dependencies named 'dev':
conda-lock --extras dev -f pyproject.toml --mamba
withpyproject.toml
being:the conda-lock.yml header displays incorrect install information:
which fails
Both :
conda-lock install --dev -n YOURENV conda-lock.yml
andconda-lock install -e dev -n YOURENV conda-lock.yml
work, any of these two commands should be suggested instead.I guess these lines should be deleted (if the
-e
option is prefered) or updated: https://github.com/conda/conda-lock/blob/fcb8d53ee135fd8c473d751343614de1c241a7ab/conda_lock/lockfile/__init__.py#L193-L199When using any other name than
dev
(e.gfoo
) for extras the correct command is suggested :conda-lock install -e foo -n YOURENV conda-lock.yml
Conda Info
Conda Config
Conda list
No response
Additional Context
This is in between documentation and bug issue and I wasn't sure how to assign it. This is also somewhat related to #255 .