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

Migrate to null safety and update to latest dependencies #102

Merged
merged 3 commits into from
Oct 29, 2021
Merged

Conversation

athomas
Copy link
Member

@athomas athomas commented Oct 28, 2021

  • Reland updates #101.
  • Fix gitEnvironment LateInitializationError.
  • Rework --dry-run to not touch the checkout.
  • Add very basic testing of bin/update_homebrew.dart (dry run doesn't throw).

/cc @kevmoo

@athomas athomas requested a review from sortie October 28, 2021 12:00
@google-cla google-cla bot added the cla: yes label Oct 28, 2021
Copy link
Contributor

@sortie sortie left a 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;
Copy link
Contributor

@sortie sortie Oct 28, 2021

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?

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Woo hoo!

Copy link
Member

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

:shipit:

@athomas athomas merged commit 68026c3 into master Oct 29, 2021
@athomas athomas deleted the update branch October 29, 2021 05:59
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.

3 participants