From 351a654ce5d13585ea99b9ca1d0f39d9a6c4ddbb Mon Sep 17 00:00:00 2001 From: "Joshua L. Adelman" Date: Fri, 13 Sep 2024 13:03:17 -0400 Subject: [PATCH] fix error msg for export conda explicit spec when pypi dependencies are present --- src/cli/project/export/conda_explicit_spec.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/project/export/conda_explicit_spec.rs b/src/cli/project/export/conda_explicit_spec.rs index d34521608..1ffedd534 100644 --- a/src/cli/project/export/conda_explicit_spec.rs +++ b/src/cli/project/export/conda_explicit_spec.rs @@ -112,8 +112,9 @@ fn render_env_platform( ); } else { miette::bail!( - "PyPI packages are not supported. Specify `--ignore-pypi-errors` to ignore this error \ - or `--write-pypi-requirements` to write pypi requirements to a separate requirements.txt file" + "PyPI packages are not supported in a conda explicit spec. \ + Specify `--ignore-pypi-errors` to ignore this error and create \ + a spec file containing only the conda dependencies from the lockfile." ); } }