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

feat: Add pixi global install --with #2332

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

Hofer-Julian
Copy link
Contributor

@Hofer-Julian Hofer-Julian commented Oct 21, 2024

No description provided.

@Hofer-Julian Hofer-Julian marked this pull request as ready for review October 21, 2024 13:49
Copy link
Contributor

@nichmor nichmor left a comment

Choose a reason for hiding this comment

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

looks good! can we have one more test where we have --with and two --environment arguments?

so we could validate this case
miette::bail!("Can't add packages with --with for more than one environment");

src/cli/global/add.rs Outdated Show resolved Hide resolved
match mappings.is_empty() {
true => Self::All,
false => Self::Subset(mappings),
pub fn new(mappings: Vec<Mapping>, filter: Vec<PackageName>) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

just to not forget - I think we will need to rethink a little new method here, because if I pass both of them I will still use only mappings

@Hofer-Julian
Copy link
Contributor Author

I've addressed your comments

@Hofer-Julian Hofer-Julian enabled auto-merge (squash) October 21, 2024 14:55
@Hofer-Julian Hofer-Julian merged commit 6122739 into prefix-dev:main Oct 21, 2024
20 checks passed
@Hofer-Julian Hofer-Julian deleted the feat/global-install-with branch October 21, 2024 15:04
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