Skip to content

Commit 5939f4d

Browse files
committed
chore: add diagnostics to patch call, await directory creation
1 parent ecd6214 commit 5939f4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build_helpers/bin/build_dart.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Future<bool> _fetchOrUpdateDartSdk() async {
101101
if (!Directory('dart-sdk').existsSync()) {
102102
logger.i('dart-sdk does not exist. Doing full fetch');
103103

104-
Directory('dart-sdk').create();
104+
await Directory('dart-sdk').create();
105105

106106
final fetchResult = await inDir('dart-sdk', () async {
107107
final fetchProcess =
@@ -162,6 +162,8 @@ Future<bool> _patchDartSdk() async {
162162
logger.i("Patching the Dart SDK to create libdart");
163163
var result = await Process.run('git', ['apply', '../../dart_sdk.patch'],
164164
runInShell: true);
165+
logger.d("[patch-stdout] ${result.stdout}");
166+
logger.d("[patch-stderr] ${result.stderr}");
165167
logger.d('Patch result is ${result.exitCode}');
166168
return result.exitCode;
167169
});

0 commit comments

Comments
 (0)