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

Unified Diff: utils/pub/sdk_source.dart

Issue 10874051: Support self-referential package: imports with Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review change Created 8 years, 4 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
« no previous file with comments | « utils/pub/pubspec.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/sdk_source.dart
diff --git a/utils/pub/sdk_source.dart b/utils/pub/sdk_source.dart
index 75dd62c369a408154ef70a5b66724c835a3102cc..5984555fe3bb300bfcb0fd6d313597e4fc2f0218 100644
--- a/utils/pub/sdk_source.dart
+++ b/utils/pub/sdk_source.dart
@@ -39,7 +39,7 @@ class SdkSource extends Source {
Future<Pubspec> describe(PackageId id) {
return readTextFile(join(rootDir, "revision")).transform((revision) {
var version = new Version.parse("0.0.0-r.${revision.trim()}");
- return new Pubspec(version, <PackageRef>[]);
+ return new Pubspec(id.name, version, <PackageRef>[]);
});
}
« no previous file with comments | « utils/pub/pubspec.dart ('k') | utils/tests/pub/pub_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698