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

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: Disallow package: imports of pub. 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.');
}
/// Gets the SDK's revision number formatted to be a semantic version.
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/safe_http_server.dart ('k') | sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698