Skip to content

refactor: Sync "pixi workspace feature remove" behaviour with "pixi remove"#5129

Merged
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
haecker-felix:remove_features_p2
Dec 15, 2025
Merged

refactor: Sync "pixi workspace feature remove" behaviour with "pixi remove"#5129
Hofer-Julian merged 2 commits intoprefix-dev:mainfrom
haecker-felix:remove_features_p2

Conversation

@haecker-felix
Copy link
Collaborator

Description

Instead of bail! when a feature doesn't exist, only print a warning, so the behavior is consistent with other remove commands.

Checklist:

  • I have performed a self-review of my own code

@haecker-felix haecker-felix added the enhancement New features label Dec 15, 2025
Comment on lines +2991 to +2994
// Remove non-existent feature should succeed
let result = manifest
.remove_feature(&FeatureName::from_str("nonexistent").unwrap())
.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to check that we log a warning there. No worries if that is hard to do.

Copy link
Collaborator Author

@haecker-felix haecker-felix Dec 15, 2025

Choose a reason for hiding this comment

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

From what I can tell, not directly doable, at least not without larger changes :/

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.

Thanks!

@Hofer-Julian Hofer-Julian merged commit bfdb168 into prefix-dev:main Dec 15, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants