-
Notifications
You must be signed in to change notification settings - Fork 15
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
BG suite multierror support #362
base: main
Are you sure you want to change the base?
Conversation
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.
I like the idea of multierror.
pkg/test/bootguard_tests.go
Outdated
Name: "SACM meets sane BootGuard requirements", | ||
Required: true, | ||
function: BootGuardACM, | ||
dependencies: []*Test{&testbootguardfit}, |
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.
I like the alignemet before the change more :)
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.
this comes from the Go formatter, which my IDE ran automatically... 😅
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.
I realized that this happened due to the comments. So, I just removed them. :)
So I checked because I noticed that go-multierror was already in the dependencies... Which led me to this: Apparently, Go 1.20 added native multi error support. Anyway, I think introducing the Uber package is fine here, and we can rework things nicely again later. |
And the CI error basically says that we should upgrade to Go 1.19 at least (I would go straight to 1.21).
Huh, we do have 1.19 though... no idea what's wrong here... sigh Edit/addendum: sooooo... since this uses atomics and Go doesn't offer them on all architectures we use, I'll see about using |
❤️ |
@@ -29,7 +30,6 @@ var ( | |||
Name: "SACM meets sane BootGuard requirements", | |||
Required: true, | |||
function: BootGuardACM, | |||
dependencies: []*Test{&testbootguardfit}, |
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.
- Why remove the dependency?
- Why not in a seperate commit?
The dependency removal is the actual feature here; this before vs after should clarify it: before
after
|
grammar fixed:
|
24e5066
to
5c9217d
Compare
Signed-off-by: Daniel Maslowski <[email protected]>
Signed-off-by: Daniel Maslowski <[email protected]>
This uses go.uber.org/multierr. Also reword many error messages to make them consistent: - capitalize BootGuard, Key Manifest and Boot Policy Manifest - spell out Key Manifest and Boot Policy Manifest - uppercase acronyms such as DMA etc Signed-off-by: Daniel Maslowski <[email protected]>
Signed-off-by: Daniel Maslowski [email protected]