Skip to content

Commit 5d64bb1

Browse files
Fix pixi list not using the appropriate environment name
1 parent bef48e7 commit 5d64bb1

File tree

4 files changed

+403
-641
lines changed

4 files changed

+403
-641
lines changed

pixi_kernel/readiness.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ async def verify_env_readiness(
6969
dependencies = pixi_environment.dependencies + pixi_environment.pypi_dependencies
7070
if required_package not in dependencies:
7171
# Check transitive dependencies
72-
returncode, stdout, stderr = await run_pixi("list", "--json", cwd=cwd, env=env)
72+
returncode, stdout, stderr = await run_pixi(
73+
"list",
74+
"--json",
75+
"--environment",
76+
environment_name,
77+
cwd=cwd,
78+
env=env,
79+
)
7380

7481
logger.info(f"pixi list stderr: {stderr}")
7582
logger.info(f"pixi list stdout: {stdout}")

0 commit comments

Comments
 (0)