From 5b32f33271058e4eb9daaddaa8f4383aa86dc0a2 Mon Sep 17 00:00:00 2001 From: Gray Mackall <34871572+gmackall@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:13:27 -0700 Subject: [PATCH] Use flutter from in same repo (not path) in `generate_gradle_lockfiles.dart` (again) (#155794) Fixes another invocation of `flutter`. Follow up to https://github.com/flutter/flutter/pull/155790/. Checked that this is the only other one (and also the only use of `exec()` left that is relying on the path and shouldn't be (one other use uses git from the path, which is fine, and the other one uses an absolute path). --- dev/tools/bin/generate_gradle_lockfiles.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tools/bin/generate_gradle_lockfiles.dart b/dev/tools/bin/generate_gradle_lockfiles.dart index 10fd873363..deda4cfe0e 100644 --- a/dev/tools/bin/generate_gradle_lockfiles.dart +++ b/dev/tools/bin/generate_gradle_lockfiles.dart @@ -190,7 +190,7 @@ void main(List arguments) { // Generate Gradle wrapper if it doesn't exist. if (!gradleWrapper.existsSync()) { exec( - 'flutter', + flutterPath, ['build', 'apk', '--config-only'], workingDirectory: appDirectory, );