Skip to content

Commit 782af86

Browse files
committed
Await async calls in package file encoding
Changed calls to encoder.addFile and encoder.close to be awaited, ensuring proper handling of asynchronous file operations during package creation.
1 parent b0f9597 commit 782af86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serious_python/bin/package_command.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ class PackageCommand extends Command {
526526
}
527527
final relativePath = path.relative(entity.path, from: source.path);
528528
final posixPath = path.posix.joinAll(path.split(relativePath));
529-
encoder.addFile(entity, posixPath);
529+
await encoder.addFile(entity, posixPath);
530530
}
531-
encoder.close();
531+
await encoder.close();
532532
}
533533

534534
Future<int> runPython(List<String> args,

0 commit comments

Comments
 (0)