From 5939f4dc590dddbbf9ea0c073aae2ec87c507b0f Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Thu, 29 Aug 2024 17:59:01 -0400 Subject: [PATCH] chore: add diagnostics to patch call, await directory creation --- scripts/build_helpers/bin/build_dart.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build_helpers/bin/build_dart.dart b/scripts/build_helpers/bin/build_dart.dart index c8e9cec..3b03b53 100644 --- a/scripts/build_helpers/bin/build_dart.dart +++ b/scripts/build_helpers/bin/build_dart.dart @@ -101,7 +101,7 @@ Future _fetchOrUpdateDartSdk() async { if (!Directory('dart-sdk').existsSync()) { logger.i('dart-sdk does not exist. Doing full fetch'); - Directory('dart-sdk').create(); + await Directory('dart-sdk').create(); final fetchResult = await inDir('dart-sdk', () async { final fetchProcess = @@ -162,6 +162,8 @@ Future _patchDartSdk() async { logger.i("Patching the Dart SDK to create libdart"); var result = await Process.run('git', ['apply', '../../dart_sdk.patch'], runInShell: true); + logger.d("[patch-stdout] ${result.stdout}"); + logger.d("[patch-stderr] ${result.stderr}"); logger.d('Patch result is ${result.exitCode}'); return result.exitCode; });