-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
dev-cmd: add brew verify #19217
dev-cmd: add brew verify #19217
Conversation
This is a direct copy of `trailofbits/homebrew-brew-verify`, but in the `DevCmd` namespace instead. Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
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.
Looks good! Some very minor suggestions, but please add tests. (Check out https://github.com/Homebrew/brew/tree/master/Library/Homebrew/test/cmd and https://github.com/Homebrew/brew/tree/master/Library/Homebrew/test/dev-cmd for common patterns.)
Co-authored-by: Douglas Eichelberger <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Thanks! I'll add some tests in a bit! |
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.
Looks good when we have tests!
Co-authored-by: Douglas Eichelberger <[email protected]>
ccd3278
to
b35cb75
Compare
Signed-off-by: William Woodruff <[email protected]>
I've added a basic "behaves like" test similar to the other dev-cmd specs. I'm not sure about how best to test this command more deeply, though -- we test the underlying API it calls pretty extensively in the attestations spec, but doing so requires a lot of extensive mocking (since we shell out to |
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.
Works for me, thanks again @woodruffw!
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This is a direct copy of
trailofbits/homebrew-brew-verify
,but in the
DevCmd
namespace instead.Signed-off-by: William Woodruff [email protected]