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

refactor: move system updater-related logic to unified driver #31

Closed
wants to merge 1 commit into from

Conversation

tulilirockz
Copy link
Contributor

@tulilirockz tulilirockz commented Dec 5, 2024

Fixes: #30

@tulilirockz
Copy link
Contributor Author

pretty nice to see that this is overall less lines than keeping it that way

type SystemUpdater struct {
Config DriverConfiguration
SystemDriver SystemUpdateDriver
SystemDriver SystemDriver
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think having seperate update drivers for rpm-ostree and bootc would be better than having a case statement in every function. The plan is to eventually deprecate rpm-ostree so it would be easier to just remove it here entirely. It would likely mean there are more LoC, but it would make more sense semantically, as they are technically different "drivers"

Copy link
Collaborator

Choose a reason for hiding this comment

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

This would be similar to before except likely a bit more organized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mind if I do this change on a new PR? The ones dependent on this one change it a bit because of the env changes. It should be pretty easy to split them afterwards

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Worst case I can just change it here and fix the merge conflicts

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you mind if I do this change on a new PR? The ones dependent on this one change it a bit because of the env changes. It should be pretty easy to split them afterwards

I don't mind, feel free to make a new PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ill mark this one as a draft until then. Ill check out the other reviews and fix them first

@tulilirockz tulilirockz marked this pull request as draft December 5, 2024 22:13
@tulilirockz tulilirockz marked this pull request as ready for review December 11, 2024 20:26
@gerblesh gerblesh closed this Dec 12, 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.

refactor: move bootc.go to the new driver pattern
2 participants