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
boot: split MakeBootable implementations into their own file #7973
boot: split MakeBootable implementations into their own file #7973
Conversation
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Not adding one to NameAndRevision because it will be ripped out in short order. Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
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.
Thank you!
@@ -150,7 +144,7 @@ type bootState interface { | |||
// revisions retrieves the revisions of the current snap and | |||
// the try snap (only the latter might not be set), and | |||
// whether the snap is in "trying" state. | |||
revisions() (snap, try_snap *NameAndRevision, trying bool, err error) |
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.
Hm, I wonder why the static checks have not warned about those. In any case, thanks for the fix!
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.
well tbh the thing that is complaining for me is go-lint, which is more strict than go vet, so run-checks won't complain about it. just a little nit pick thing that I don't think we need to block PR's on, so we don't need to add anything to run-checks
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.
thank you, some small nitpicks
* Add "." to end of doc-comments for consistency * Move MakeBootable to right after BootableSet for simplicity Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
5f1e418
to
beaf0a8
Compare
whoops I had a typo in one of my commit messages and thought I had fixed it before pushing up first time, evidently not and accidentally force-pushed |
The uc20 regression test suite failed because the reboot request timed out:
As such, I restarted it since there wasn't more details in the logs |
Also some drive-by tweaks to add doc-comments and remove underscores from some variable names.