Chromium Code Reviews

Unified Diff: utils/pub/entrypoint.dart

Issue 10690032: Make VersionSolver source- and description-aware. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | utils/pub/git_source.dart » ('j') | utils/pub/package.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/entrypoint.dart
diff --git a/utils/pub/entrypoint.dart b/utils/pub/entrypoint.dart
index 7b3e66644c6ef368f7eeb24d19aceda6e1a42d7f..be6398318d7bd90a4daf0f1930b6e6e72a0250c1 100644
--- a/utils/pub/entrypoint.dart
+++ b/utils/pub/entrypoint.dart
@@ -140,7 +140,6 @@ class Entrypoint {
// TODO(rnystrom): This should use the lockfile to select the right version
// once that's implemented. If the lockfile doesn't exist, it should
// generate it. In the meantime, here's a dumb implementation:
- return new Future.immediate(
- new PackageId(ref.source, ref.constraint, ref.description));
+ return new Future.immediate(ref.withVersion(ref.constraint));
}
}
« no previous file with comments | « no previous file | utils/pub/git_source.dart » ('j') | utils/pub/package.dart » ('J')

Powered by Google App Engine