| Index: lib/src/entrypoint.dart
|
| diff --git a/lib/src/entrypoint.dart b/lib/src/entrypoint.dart
|
| index 9a6cded000e8a78807d212fc1d2f7211086e974b..5618eca03faf7dde26789df032b9d08fc56a8432 100644
|
| --- a/lib/src/entrypoint.dart
|
| +++ b/lib/src/entrypoint.dart
|
| @@ -466,7 +466,10 @@ class Entrypoint {
|
| cache.sources[id.source].getDirectory(id));
|
| });
|
|
|
| - return new PackageGraph(this, new LockFile(result.packages), packages);
|
| + return new PackageGraph(
|
| + this,
|
| + new LockFile(result.packages, cache.sources),
|
| + packages);
|
| }
|
|
|
| await ensureLockFileIsUpToDate();
|
| @@ -486,9 +489,9 @@ class Entrypoint {
|
|
|
| /// Saves a list of concrete package versions to the `pubspec.lock` file.
|
| void _saveLockFile(List<PackageId> packageIds) {
|
| - _lockFile = new LockFile(packageIds);
|
| + _lockFile = new LockFile(packageIds, cache.sources);
|
| var lockFilePath = root.path('pubspec.lock');
|
| - writeTextFile(lockFilePath, _lockFile.serialize(root.dir, cache.sources));
|
| + writeTextFile(lockFilePath, _lockFile.serialize(root.dir));
|
| }
|
|
|
| /// Creates a self-referential symlink in the `packages` directory that allows
|
|
|