Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency from feature through cli #680

Merged
merged 11 commits into from
Jan 18, 2024

Conversation

ruben-arts
Copy link
Contributor

This adds --feature FEATURENAME to the pixi remove command.

Did this one first as it is probably one of the simplest commands to modify. To prepare for the full multi env integration.

Copy link
Contributor

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

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

Nice work! Awesome to see you tackle small parts!

src/cli/remove.rs Outdated Show resolved Hide resolved
src/project/manifest/mod.rs Outdated Show resolved Hide resolved
src/project/manifest/mod.rs Outdated Show resolved Hide resolved
src/project/manifest/mod.rs Outdated Show resolved Hide resolved
src/project/manifest/mod.rs Outdated Show resolved Hide resolved
src/project/manifest/mod.rs Outdated Show resolved Hide resolved
@@ -308,15 +308,13 @@ impl Manifest {
dep: &PackageName,
spec_type: SpecType,
platform: Option<Platform>,
feature_name: Option<&FeatureName>,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can use the same logic here. I think the user should always pass a feature name. Its either the default or a named one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, changed that in d8dbc95

@wolfv wolfv changed the title Remove depependency from feature through cli Remove dependency from feature through cli Jan 18, 2024
@ruben-arts ruben-arts merged commit 6746b43 into prefix-dev:main Jan 18, 2024
11 checks passed
@baszalmstra baszalmstra added this to the Multi-env milestone Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants