From c97fc10ee340506e0abad3aea03a91d80c019248 Mon Sep 17 00:00:00 2001 From: Bowei Zhang Date: Wed, 16 Jul 2025 16:29:07 -0700 Subject: [PATCH] chore: List `extra-dependencies` as regular deps in `env show --json` --- src/hatch/cli/env/show.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hatch/cli/env/show.py b/src/hatch/cli/env/show.py index 134368efb..e2f96e4e4 100644 --- a/src/hatch/cli/env/show.py +++ b/src/hatch/cli/env/show.py @@ -50,7 +50,10 @@ def show( extra_dependencies = environment.environment_dependencies[num_dependencies:] if extra_dependencies: - new_config['extra-dependencies'] = extra_dependencies + if dependencies: + new_config['dependencies'].extend(extra_dependencies) + else: + new_config['dependencies'] = extra_dependencies if environment.pre_install_commands: new_config['pre-install-commands'] = list(