prefix-dev / pixi

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

Upgrading the global package fails in the initial try and succeeds on subsequent try #2287

Open amirhosseindavoody opened 2 days ago

amirhosseindavoody commented 2 days ago

Checks

Reproducible example

I don't know if this is reproducible. But in my machine this happened when I tried to upgrade any global package.

pixi global upgrade nvim

Issue description

Upgrading the global package fails in the initial try and succeeds on subsequent try:

Image

Pixi version: 0.32.1

Expected behavior

Upgrading the global package succeeds in the initial try.

wolfv commented 1 day ago

Thank you @amirhosseindavoody - I've debugged this. The good news is that I wasn't able to reproduce this easily, but I think I know pretty much where the logic problem / race condition is. I'll think of a fix!