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

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

Issue 14297021: Move pub into sdk/lib/_internal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/sdk.dart
diff --git a/utils/pub/sdk.dart b/sdk/lib/_internal/pub/lib/src/sdk.dart
similarity index 92%
rename from utils/pub/sdk.dart
rename to sdk/lib/_internal/pub/lib/src/sdk.dart
index b9b50ecca2c7a1c2867fa340f81e734701292897..6b304d9e4cadb0623658d1e414dcf992566496f1 100644
--- a/utils/pub/sdk.dart
+++ b/sdk/lib/_internal/pub/lib/src/sdk.dart
@@ -28,10 +28,8 @@ String get rootDirectory {
return dir;
}
- var pubDir = path.dirname(new Options().script);
- dir = path.normalize(path.join(pubDir, "../../"));
- log.fine("Located SDK at $dir");
- return dir;
+ throw new Exception('DART_SDK environment variable not set, unable to find '
+ 'the SDK.');
Bob Nystrom 2013/04/23 19:41:19 Can you get the automatic detection working? Havin
nweiz 2013/04/23 19:56:27 This code was broken; it would return the repo roo
Bob Nystrom 2013/04/23 20:26:14 I'm fine with leaving it out for now then.
}
/// Gets the SDK's revision number formatted to be a semantic version.

Powered by Google App Engine
This is Rietveld 408576698