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 d007f2e69747e233e87b8a2273d2eb695bedc679..a9a88d8f9d448245e47e6fffcfa1e433b1d85069 100644 |
--- a/sdk/lib/_internal/pub/lib/src/source/path.dart |
+++ b/sdk/lib/_internal/pub/lib/src/source/path.dart |
@@ -22,8 +22,8 @@ class PathSource extends Source { |
Future<Pubspec> describeUncached(PackageId id) { |
return new Future.sync(() { |
_validatePath(id.name, id.description); |
- return new Pubspec.load(id.name, id.description["path"], |
- systemCache.sources); |
+ return new Pubspec.load(id.description["path"], systemCache.sources, |
+ expectedName: id.name); |
}); |
} |