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..a812e9c338a968495e5dc9a3540d3fcb08e78774 100644 |
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart |
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart |
@@ -237,7 +237,7 @@ class Entrypoint { |
} |
var lockFilePath = path.join(root.dir, 'pubspec.lock'); |
- writeTextFile(lockFilePath, lockFile.serialize()); |
+ writeTextFile(lockFilePath, lockFile.serialize(root.dir, cache.sources)); |
} |
/// Creates a self-referential symlink in the `packages` directory that allows |