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

Unified Diff: utils/pub/pub.dart

Issue 12079112: Make a bunch of stuff in pub synchronous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 8a21eccd5226029cabcb26c1060fe21e07217013..c0cd3b50657e5a9016b1a917d20173e7c96013fb 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -238,7 +238,7 @@ abstract class PubCommand {
// TODO(rnystrom): Will eventually need better logic to walk up
// subdirectories until we hit one that looks package-like. For now, just
// assume the cwd is it.
- future = Entrypoint.load(path.current, cache);
+ future = defer(() => new Entrypoint(path.current, cache));
nweiz 2013/02/01 02:05:55 I think this slightly arcane control flow is an ar
Bob Nystrom 2013/02/01 23:17:21 Beautiful. Tweaked it a bit more, but that's great
}
future = future.then((entrypoint) {

Powered by Google App Engine
This is Rietveld 408576698