prefix-dev / pixi

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

List package's channel and subdir with `pixi list` #1558

Open corneliusroemer opened 3 months ago

corneliusroemer commented 3 months ago

Problem description

Pixi is amazing, great that it now also supports using non-native architectures, like osx-64 on osx-arm64! You are really onto something with pixi, love it!

It would be amazing if you showed the channel and subdir that a package comes from in pixi list. Right now it looks like this:

Brave Browser 2024-07-04 01 34 59

No way to see whether packages come form bioconda or conda-forge or default etc.

The info is evidently there in the lock file:

Hyper 2024-07-04 01 37 45
ruben-arts commented 3 months ago

Do you think it makes sense to make the "Source" the actual url? although it's repeating the info alot of times?

Some shrink logic could be added to:

corneliusroemer commented 3 months ago

I'm not sure about how to compress - but I note that you seem to use shorthand for channels instead of URLs in some places, e.g. :

channels = ["conda-forge", "bioconda"]

there you also don't use conda: https://conda....

I'd say omit host unless multiple are used. But still show channel and subdir in any case. But your omission strategy also sounds good.