Skip to content
Snippets Groups Projects
Commit 417f72aa authored by keertip@google.com's avatar keertip@google.com
Browse files

add a comment to the generated lock file

Review URL: https://codereview.chromium.org//12133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@17951 260f80e4-7a28-3924-810f-c04153c831b5
parent 11acf710
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@ class LockFile {
var packages = <String, PackageId>{};
if (contents.trim() == '') return new LockFile.empty();
var parsed = loadYaml(contents);
if (parsed.containsKey('packages')) {
......@@ -85,6 +84,9 @@ class LockFile {
// TODO(nweiz): Serialize using the YAML library once it supports
// serialization. For now, we use JSON, since it's a subset of YAML anyway.
return json.stringify({'packages': packagesObj});
return '''
# Generated by pub. See: http://pub.dartlang.org/doc/glossary.html#lockfile
${json.stringify({'packages': packagesObj})}
''';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment