Skip to content

Commit

Permalink
Add debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jul 24, 2024
1 parent 49a1266 commit 25b5e07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/intl4x/tool/generate_hashes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Future<void> main(List<String> args) async {
final fileHash = sha256.convert(bytes).toString();
fileHashes[(os, architecture)] = fileHash;
print('Hash is $fileHash');
} else {
print('Could not get library');
}
}
}
Expand Down Expand Up @@ -67,6 +69,7 @@ Future<bool> _copyLibrary(
) async {
final fileUri = Directory.current.uri.resolve(folder).resolve(target);
final file = File.fromUri(fileUri);
print('Copy file from ${fileUri.toFilePath()} to ${dynamicLibrary.path}');
if (await file.exists()) {
await file.copy(dynamicLibrary.path);
return true;
Expand All @@ -80,6 +83,7 @@ Future<bool> _fetchLibrary(
'https://github.com/dart-lang/i18n/releases/download/$version/$target');
final request = await httpClient.getUrl(uri);
final response = await request.close();
print('Fetch file from $uri');
if (response.statusCode != 200) {
print('File not found at $uri');
return false;
Expand Down

0 comments on commit 25b5e07

Please sign in to comment.