You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
After building a lock file from a pyproject.toml with optional dependencies named 'dev': conda-lock --extras dev -f pyproject.toml --mamba with pyproject.toml being:
the conda-lock.yml header displays incorrect install information:
# This lock contains optional development dependencies. Include them in the installed environment with:
# conda-lock install --dev-dependencies -n YOURENV conda-lock.yml
Both : conda-lock install --dev -n YOURENV conda-lock.yml and conda-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:
@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:conda-lock/conda_lock/lockfile/__init__.py
Lines 193 to 199 in fcb8d53
When 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
# nothing
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 .
The text was updated successfully, but these errors were encountered: