prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.38k stars 193 forks source link

pixi global list fails when empty global environment is present #2413

Open nichmor opened 2 weeks ago

nichmor commented 2 weeks ago

Checks

Reproducible example

[envs.some_dev]
channels = ["conda-forge"]
dependencies = {}
exposed = {}

Issue description

If an empty environment is present in pixi global manifest as in the example

it will make pixi global list fail with the following error: × No package records found in /Users/graf/.pixi/envs/some_dev/conda-meta

Expected behavior

I think we should not allow such (empty) environment declaration in manifest.

Hofer-Julian commented 2 weeks ago

I think we should not allow such (empty) environment declaration in manifest.

I was starting out with that, but I remember that it made things a bit awkward in a couple of places. I think we should just fix pixi global list :)