Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prefer using conda list -n/-p --json over string and parsing #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DonJayamanne opened this issue May 15, 2025 · 0 comments
Open

Prefer using conda list -n/-p --json over string and parsing #417

DonJayamanne opened this issue May 15, 2025 · 0 comments
Assignees

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented May 15, 2025

Conda list supports the json format, since 2015-16 (tests were added in 2017 for this arg).
https://docs.conda.io/projects/conda/en/stable/release-notes.html#id531
I think we should use that over parsing the string based on spaces and looking for package name and version.

Would have also prevented #416 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants