Skip to content

Instantly share code, notes, and snippets.

@blasten
Last active January 13, 2022 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blasten/24ab4d11b41e9d7b1cdb493978850aea to your computer and use it in GitHub Desktop.
Save blasten/24ab4d11b41e9d7b1cdb493978850aea to your computer and use it in GitHub Desktop.
Bisect the Flutter SDK

Bisect the Flutter SDK

  1. Start
cd <flutter-sdk-install-location>
git bisect start
  1. Ensure you can reproduce the issue at this point. If you can't repro the issue, then find a commit or Flutter release where you can repro the issue.
git bisect bad
git bisect next
  1. Enter Y to accept

  2. Run the Flutter command that repros the issue. For example:

flutter run
  1. If you CAN repro the issue
git bisect bad
  1. If you CAN'T repro the issue
git bisect good
  1. Repeat steps 4-7 until you get a single commit culprit: e.g.
commit 0a2d8e0ccef65b1325de07873c429c9960abe006 (HEAD, refs/bisect/bad)
Author: Jonah Williams <jonahwilliams@google.com>
Date:   Mon Dec 16 18:37:20 2019 -0800

    [flutter_tool] Remove direct usage of package:linter in the flutter_tools (#47174)
  1. Share this commit with the Flutter team. The Flutter team may expect the commit to be an engine roll commit if the issue is originated from the Flutter engine.

  2. Exit bisect

git bisect reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment