Use flutter from in same repo (not path) in generate_gradle_lockfiles.dart (#155790)

Should hopefully fix https://github.com/flutter/flutter/issues/155704 🙏
This commit is contained in:
Gray Mackall
2024-09-26 15:58:06 -07:00
committed by GitHub
parent 9a64920bb9
commit 2c0a4f2d44

View File

@@ -179,7 +179,11 @@ void main(List<String> arguments) {
final String appDirectory = androidDirectory.parent.absolute.path;
// Fetch pub dependencies.
exec('flutter', <String>['pub', 'get'], workingDirectory: appDirectory);
final String flutterPath = repoRoot
.childDirectory('bin')
.childFile('flutter')
.path;
exec(flutterPath, <String>['pub', 'get'], workingDirectory: appDirectory);
// Verify that the Gradlew wrapper exists.
final File gradleWrapper = androidDirectory.childFile('gradlew');