Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: sdk/lib/_internal/pub/lib/src/lock_file.dart

Issue 34803006: Make pubspec.lock keep relative path if it is originally specified as relative in pubspec.yaml (iss… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/lock_file.dart
diff --git a/sdk/lib/_internal/pub/lib/src/lock_file.dart b/sdk/lib/_internal/pub/lib/src/lock_file.dart
index e3dff8011d197a68428044a11fd0d96ebefed0d9..07cbc9539d61d8bcaf5fe219246bc4c592e344ef 100644
--- a/sdk/lib/_internal/pub/lib/src/lock_file.dart
+++ b/sdk/lib/_internal/pub/lib/src/lock_file.dart
@@ -83,14 +83,17 @@ class LockFile {
}
/// Returns the serialized YAML text of the lock file.
- String serialize() {
+ String serialize(String rootPath, SourceRegistry sources) {
Bob Nystrom 2013/10/28 22:13:32 "rootPath" -> "packageDir". Maybe explain it in t
Anton Moiseev 2013/11/03 11:11:43 Done.
// Convert the dependencies to a simple object.
var data = {};
packages.forEach((name, package) {
+ var description = sources[package.source].serializeDescription(
+ rootPath, package.description);
+
data[name] = {
- 'version': packages[name].version.toString(),
- 'source': packages[name].source,
- 'description': packages[name].description
+ 'version': package.version.toString(),
+ 'source': package.source,
+ 'description': description
};
});

Powered by Google App Engine
This is Rietveld 408576698