Index: sdk/lib/_internal/pub/lib/src/source/path.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/source/path.dart b/sdk/lib/_internal/pub/lib/src/source/path.dart |
index fc13cc7c9ad8bfd1c08c24d93e22c8945415b5cc..c1fbd52f75815a8db7cd007aa4469a1341298f5f 100644 |
--- a/sdk/lib/_internal/pub/lib/src/source/path.dart |
+++ b/sdk/lib/_internal/pub/lib/src/source/path.dart |
@@ -35,7 +35,7 @@ class PathSource extends Source { |
final name = 'path'; |
Future<Pubspec> doDescribe(PackageId id) { |
- return syncFuture(() { |
+ return new Future.sync(() { |
var dir = _validatePath(id.name, id.description); |
return new Pubspec.load(dir, systemCache.sources, |
expectedName: id.name); |
@@ -50,7 +50,7 @@ class PathSource extends Source { |
} |
Future get(PackageId id, String symlink) { |
- return syncFuture(() { |
+ return new Future.sync(() { |
var dir = _validatePath(id.name, id.description); |
createPackageSymlink(id.name, dir, symlink, |
relative: id.description["relative"]); |