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

Skip to content

Only print 'envs' details when info --envs is invoked with --json#15353

Merged
jezdez merged 5 commits intoconda:mainfrom
jaimergp:env-list-json
Oct 24, 2025
Merged

Only print 'envs' details when info --envs is invoked with --json#15353
jezdez merged 5 commits intoconda:mainfrom
jaimergp:env-list-json

Conversation

@jaimergp
Copy link
Contributor

@jaimergp jaimergp commented Oct 23, 2025

Description

Observed in #15330. conda info --envs --json and conda info --json have the exact same output. More importantly, conda env list --json prints the same output as conda info --json.

This PR makes it so when conda info --envs --json and conda env list --json are called, only the envs list is returned as a dictionary like:

{
  "envs": [
    "/Users/USERNAME/.local/conda",
	...
  ]
}

My plan is to add envs_details to the output too, as proposed in #15330.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@jaimergp jaimergp requested a review from a team as a code owner October 23, 2025 16:41
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Oct 23, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in 🔎 Review Oct 23, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 23, 2025

CodSpeed Performance Report

Merging #15353 will not alter performance

Comparing jaimergp:env-list-json (70b8ca4) with main (de1f67a)

Summary

✅ 23 untouched
⏩ 21 skipped1

Footnotes

  1. 21 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@jezdez
Copy link
Member

jezdez commented Oct 24, 2025

Nice catch!

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Oct 24, 2025
@jezdez jezdez merged commit 474b977 into conda:main Oct 24, 2025
76 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Oct 24, 2025
Zaubentrucker added a commit to Zaubentrucker/nu_scripts that referenced this pull request Feb 12, 2026
From conda version 25.11, the `conda info --envs --json` command
no longer contains the `env_dirs` field, as described in
conda/conda#15353. This info is still contained
in `conda info --json` however.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants

Comments