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

Unified Diff: utils/pub/pub.dart

Issue 10907036: Hide self-referential symlinks behind a flag in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/entrypoint.dart ('k') | utils/tests/pub/pub_install_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index b6f196d830f6fdbf269698b85cfc8bd149f0729b..6db58c53619d6dffd6234365c233f14e12b4a355 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -52,6 +52,7 @@ ArgParser get pubArgParser {
parser.addFlag('version', negatable: false,
help: 'Prints the version of Pub');
parser.addFlag('trace', help: 'Prints a stack trace when an error occurs');
+ parser.addFlag('self-link', help: 'Temporary flag, do not use.');
return parser;
}
@@ -74,6 +75,12 @@ main() {
return;
}
+ // TODO(rnystrom): Get rid of this flag (and make the default be true) when
+ // #4820 is fixed and the Editor can handle recursive symlinks.
+ if (globalOptions['self-link']) {
+ Entrypoint.installSelfLink = true;
+ }
+
// TODO(nweiz): Have a fallback for this this out automatically once 1145 is
// fixed.
var sdkDir = Platform.environment['DART_SDK'];
« no previous file with comments | « utils/pub/entrypoint.dart ('k') | utils/tests/pub/pub_install_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698