Skip to content

Fix "gclient sync" call in "dt serve" for Windows - #9976

Merged
srawlins merged 2 commits into
flutter:masterfrom
DanTup:fix-gclient-sync-call-windows
Aug 25, 2026
Merged

Fix "gclient sync" call in "dt serve" for Windows#9976
srawlins merged 2 commits into
flutter:masterfrom
DanTup:fix-gclient-sync-call-windows

Conversation

@DanTup

@DanTup DanTup commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

On Windows, shell scripts must be invoked with their ".bat" suffix. Without this fix, "gclient sync" would fail when called by "dt serve".

On Windows, shell scripts must be invoked with their ".bat" suffix. Without this fix, "gclient sync" would fail when called by "dt serve".

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a helper function shellScriptName in tool/lib/utils.dart to determine the correct shell script name based on the platform (appending .bat on Windows). It refactors FlutterSdk and CliCommand to use this helper, reducing code duplication. The review feedback points out a minor typo ("them them") in the documentation comment of the new helper function.

Comment thread tool/lib/utils.dart
@srawlins
srawlins merged commit 0eebad5 into flutter:master Aug 25, 2026
51 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants