| Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| index 46367fa15710e4101e1c99ac06491d8023242998..c743b3a72c0718c478619e8e6d443cb48d12bb0f 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
|
| @@ -215,7 +215,8 @@ class Entrypoint {
|
| /// Loads the package graph for the application and all of its transitive
|
| /// dependencies.
|
| Future<PackageGraph> loadPackageGraph() {
|
| - return Future.wait(loadLockFile().packages.values.map((id) {
|
| + var lockFile = loadLockFile();
|
| + return Future.wait(lockFile.packages.values.map((id) {
|
| var source = cache.sources[id.source];
|
| return source.getDirectory(id)
|
| .then((dir) => new Package.load(id.name, dir, cache.sources));
|
| @@ -225,7 +226,7 @@ class Entrypoint {
|
| packageMap[package.name] = package;
|
| }
|
| packageMap[root.name] = root;
|
| - return new PackageGraph(this, packageMap);
|
| + return new PackageGraph(this, lockFile, packageMap);
|
| });
|
| }
|
|
|
|
|