Skip to content

Commit

Permalink
chore: add diagnostics to patch call, await directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzybinary committed Aug 29, 2024
1 parent ecd6214 commit 5939f4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build_helpers/bin/build_dart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Future<bool> _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 =
Expand Down Expand Up @@ -162,6 +162,8 @@ Future<bool> _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;
});
Expand Down

0 comments on commit 5939f4d

Please sign in to comment.