pixi
pixi copied to clipboard
fix: Use the right channels when upgrading global packages
Fixes https://github.com/prefix-dev/pixi/issues/1318
I actually think we should store the initial request in the environment - requested platform and channel.
In the future we migth store more (like inject'ed
packages etc.).
@wolfv is there a specific method to do that?
Not yet I believe. My idea was to store a little JSON file in the conda-meta/
folder (or another format), that would contain this meta information. (it should not have a .json
file ending though because we currently try to parse all files in that folder that end wtih json
as PrefixRecords
).
Ok @wolfv . Let me see about that.
@wolfv , I think the question of storing data in a file for global packages is broader than this PR. So I prefer to not get into that rabbit hole here.
@pavelzw any chance you could check this indeed resolves #1318 ?
I made a number of steps parallel. It does not seem to have a meaningful impact in terms of speed, so happy to either leave it as is, or revert to a simpler, non-parallel upgrade function.
Just checked, #1318 was already fixed by #1324 and works with pixi 0.21.0
already 😅 But I also checked with this PR and it still works with this PR as well.