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 reinstallation method to installer and transaction #1128

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tdejager
Copy link
Collaborator

This adds a re-installation method to the installer so that we can "force" reinstall packages which is something we want to do in pixi.

I've only added a method for testing the transaction, not sure if this is the right way to go about it :)

@@ -50,6 +51,7 @@ pub struct Installer {
target_platform: Option<Platform>,
apple_code_sign_behavior: AppleCodeSignBehavior,
alternative_target_prefix: Option<PathBuf>,
reinstall_packages: Option<Vec<PackageName>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe this should be a hashset set we only test for inclusion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you want to pass around the HashSet? If so we should get rid of the iterator as well in the Transaction I think :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah makes sense!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok I've changed it to accept and pass HashSet's around :)

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.

3 participants