-
Notifications
You must be signed in to change notification settings - Fork 68
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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>>, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah makes sense!
There was a problem hiding this comment.
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 :)
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 :)