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

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

Issue 1282533003: Don't implicitly run "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 5 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 | « lib/src/command/deps.dart ('k') | lib/src/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/list_package_dirs.dart
diff --git a/lib/src/command/list_package_dirs.dart b/lib/src/command/list_package_dirs.dart
index 34d695273701d45ac1338937ec0d0b844c2216aa..36e45269fc4d23067bec37a84df06ebc2901dd57 100644
--- a/lib/src/command/list_package_dirs.dart
+++ b/lib/src/command/list_package_dirs.dart
@@ -7,6 +7,7 @@ library pub.command.list_package_dirs;
import 'package:path/path.dart' as p;
import '../command.dart';
+import '../io.dart';
import '../log.dart' as log;
import '../utils.dart';
@@ -27,7 +28,7 @@ class ListPackageDirsCommand extends PubCommand {
void run() {
log.json.enabled = true;
- if (!entrypoint.lockFileExists) {
+ if (!fileExists(entrypoint.lockFilePath)) {
dataError('Package "myapp" has no lockfile. Please run "pub get" first.');
}
« no previous file with comments | « lib/src/command/deps.dart ('k') | lib/src/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698