Index: utils/pub/command_lish.dart |
diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart |
index 8b83d66d90816119cd018bd12fa93f025a6249d9..59bfbbf452cd7f4e3da6b3fbf8c5c5a1b8f4fc88 100644 |
--- a/utils/pub/command_lish.dart |
+++ b/utils/pub/command_lish.dart |
@@ -91,7 +91,7 @@ class LishCommand extends PubCommand { |
files = f; |
log.fine('Archiving and publishing ${entrypoint.root}.'); |
return createTarGz(files, baseDir: entrypoint.root.dir); |
- }).then((stream) => stream.toBytes()).then((packageBytes) { |
+ }).then(consumeInputStream).then((packageBytes) { |
// Show the package contents so the user can verify they look OK. |
var package = entrypoint.root; |
log.message( |