Skip to content

Commit 7fbc104

Browse files
committed
Revert "Run "pub run" against the .packages file."
This reverts commit dc626af. This broke due to dart-lang/sdk#23991. [email protected] Review URL: https://codereview.chromium.org//1272833003 .
1 parent dc626af commit 7fbc104

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/src/entrypoint.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ class Entrypoint {
7676
/// The path to the entrypoint's "packages" directory.
7777
String get packagesDir => root.path('packages');
7878

79-
/// The path to the entrypoint's ".packages" file.
80-
String get packagesFile => root.path('.packages');
81-
8279
/// `true` if the entrypoint package currently has a lock file.
8380
bool get lockFileExists => _lockFile != null || entryExists(lockFilePath);
8481

lib/src/executable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Future<int> runExecutable(Entrypoint entrypoint, String package,
120120
// helpful for the subprocess to be able to spawn Dart with
121121
// Platform.executableArguments and have that work regardless of the working
122122
// directory.
123-
vmArgs.add('--packages=${p.toUri(p.absolute(entrypoint.packagesFile))}');
123+
vmArgs.add('--package-root=${p.toUri(p.absolute(entrypoint.packagesDir))}');
124124
}
125125

126126
vmArgs.add(executableUrl.toString());

0 commit comments

Comments
 (0)