-
Notifications
You must be signed in to change notification settings - Fork 52
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
Migrate to null safety and update to latest dependencies #102
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.
lgtm, I like the test that catches issues like this for the future
A couple optional style suggestions but otherwise this all lgtm
@@ -22,33 +32,24 @@ void main(List<String> args) async { | |||
print( | |||
"Usage: update_homebrew.dart -r version -c channel [-k ssh_key] [-n]\n" | |||
" ssh_key should allow pushes to $githubRepo on github"); | |||
exitCode = 1; | |||
exitCode = 64; |
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 do you need to discern this from the above exit? Are you trying to handle one of them? The above one seems the most interesting case to catch, maybe it should be the 64 one?
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.
https://pub.dev/documentation/io/latest/io/ExitCode/usage-constant.html
Seemed like an appropriate value for this case.
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.
Woo hoo!
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.
--dry-run
to not touch the checkout.bin/update_homebrew.dart
(dry run doesn't throw)./cc @kevmoo