Index: utils/pub/command_uploader.dart |
diff --git a/utils/pub/command_uploader.dart b/utils/pub/command_uploader.dart |
index 029f78c6f29ee45019d3f064daac9c1bd67f3cc9..5bb05f29cb801f0050b0896a72360a6f3457587a 100644 |
--- a/utils/pub/command_uploader.dart |
+++ b/utils/pub/command_uploader.dart |
@@ -59,7 +59,7 @@ class UploaderCommand extends PubCommand { |
exit(exit_codes.USAGE); |
} |
- return new Future.of(() { |
+ return new Future.sync(() { |
var package = commandOptions['package']; |
if (package != null) return package; |
return new Entrypoint(path.current, cache).root.name; |