Skip to content

fix(global): handle empty dirs when global install bla fails#4860

Merged
Hofer-Julian merged 4 commits intoprefix-dev:mainfrom
mrswastik-robot:empty-dir-bug
Dec 10, 2025
Merged

fix(global): handle empty dirs when global install bla fails#4860
Hofer-Julian merged 4 commits intoprefix-dev:mainfrom
mrswastik-robot:empty-dir-bug

Conversation

@mrswastik-robot
Copy link
Contributor

fixes #4201

modified revert_environment_after_error() to check if env doesn't exist in manifest but dir exists, then remove the dir.

@lucascolley lucascolley added bug Something isn't working area:global Related to pixi global labels Nov 3, 2025
@lucascolley lucascolley changed the title fix: handle empty dirs when pixi global install bla fails fix(global): handle empty dirs when global install bla fails Nov 3, 2025
Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm. Also added a test to verify that.
Thanks @mrswastik-robot!

@Hofer-Julian Hofer-Julian enabled auto-merge (squash) December 5, 2025 16:08
@Hofer-Julian Hofer-Julian merged commit 0ee4cfc into prefix-dev:main Dec 10, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:global Related to pixi global bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pixi global install bla creates empty directory

3 participants