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

Unified Diff: lib/src/command/run.dart

Issue 1161613012: Remove the deprecation warning for the new "pub run" syntax. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/run.dart
diff --git a/lib/src/command/run.dart b/lib/src/command/run.dart
index 55cc957dd9748ecdd28cb2cec71abde005affe71..04cce11d9522442537cb1fba94a6ab12eb00ad81 100644
--- a/lib/src/command/run.dart
+++ b/lib/src/command/run.dart
@@ -55,18 +55,7 @@ class RunCommand extends PubCommand {
} else if (onlyIdentifierRegExp.hasMatch(executable)) {
// "pub run foo" means the same thing as "pub run foo:foo" as long as
// "foo" is a valid Dart identifier (and thus package name).
-
- // TODO(nweiz): Remove this after Dart 1.10 ships.
- var localPath = p.join("bin", "$executable.dart");
- if (fileExists(localPath) && executable != entrypoint.root.name) {
- log.warning(
- 'In future releases, "pub run $executable" will mean the same '
- 'thing as "pub run $executable:$executable".\n'
- 'Run "pub run ${p.join("bin", executable)}" explicitly to run the '
- 'local executable.');
- } else {
- package = executable;
- }
+ package = executable;
}
var mode;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698