Repository navigation
[tool] Regenerate MockGitDir for package:git 2.5.0 - #13544
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Code Review
This pull request updates the git dependency in script/tool/pubspec.yaml from ^2.0.0 to ^2.5.0. It also updates the generated mock file script/tool/test/common/package_command_test.mocks.dart to include new mocked methods and imports from the updated git package. No review comments were provided.
|
Re: missing tests, the regenerated mocks are part of the tests. :) |
package:git to ^2.5.0 and regenerate MockGitDirMockGitDir for package:git 2.5.0
|
Detected the If you add the The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue". |
flutter/packages@1df8447...670b30e 2026-11-04 [email protected] [material_ui] Inherit `IconButtonThemeData.variant` from enclosing themes (flutter/packages#13263) 2026-11-04 [email protected] [tool] Regenerate `MockGitDir` for `package:git` 2.5.0 (flutter/packages#13544) 2026-11-03 [email protected] [material_ui] Fix discrete Slider selecting the neighboring tick near the track ends (flutter/packages#12927) 2026-11-03 [email protected] [material_ui] Migrate M3 Time Picker template to use new gen_defaults (flutter/packages#13164) 2026-11-03 [email protected] [camera_android_camerax] Update skills_lint to 0.5.3 (flutter/packages#13530) 2026-11-03 [email protected] Roll Flutter from fcfb4f2 to 9347202 (38 revisions) (flutter/packages#13540) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
package:git2.4.0and2.5.0were recently published to pub.dev and added an optional named parameter ({bool includeUntracked = true}) toGitDir.isWorkingTreeClean, along with several new methods onGitDir.Because
script/tooldoes not check in apubspec.lock,dart pub getin CI (Linux repo_checks->tool unit tests) now resolvesgit 2.5.0, causingpackage_command_test.dartto fail compilation against the checked-inMockGitDir:This PR:
script/tool/test/common/package_command_test.mocks.dartwithbuild_runneragainstpackage:git2.5.0.git: ^2.0.0inscript/tool/pubspec.yamlso thatLinux analyze_legacy N-2(which runs on Flutter3.41.9/ Dart3.11.5, whereasgit >=2.4.0requires Dart>=3.12.0) can still resolvegit 2.3.2when bootstrappingscript/toolinprepare_tool.sh.Part of flutter/flutter#195938
Pre-Review Checklist
[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2