Skip to content
Snippets Groups Projects
Commit 097ed875 authored by Natalie Weizenbaum's avatar Natalie Weizenbaum
Browse files

Run "pub run" against the .packages file.

This reverts commit 7fbc1040, which
reverted commit dc626af3.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1272903002 .
parent b308456f
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,9 @@ class Entrypoint { ...@@ -76,6 +76,9 @@ class Entrypoint {
/// The path to the entrypoint's "packages" directory. /// The path to the entrypoint's "packages" directory.
String get packagesDir => root.path('packages'); String get packagesDir => root.path('packages');
/// The path to the entrypoint's ".packages" file.
String get packagesFile => root.path('.packages');
/// `true` if the entrypoint package currently has a lock file. /// `true` if the entrypoint package currently has a lock file.
bool get lockFileExists => _lockFile != null || entryExists(lockFilePath); bool get lockFileExists => _lockFile != null || entryExists(lockFilePath);
......
...@@ -120,7 +120,7 @@ Future<int> runExecutable(Entrypoint entrypoint, String package, ...@@ -120,7 +120,7 @@ Future<int> runExecutable(Entrypoint entrypoint, String package,
// helpful for the subprocess to be able to spawn Dart with // helpful for the subprocess to be able to spawn Dart with
// Platform.executableArguments and have that work regardless of the working // Platform.executableArguments and have that work regardless of the working
// directory. // directory.
vmArgs.add('--package-root=${p.toUri(p.absolute(entrypoint.packagesDir))}'); vmArgs.add('--packages=${p.toUri(p.absolute(entrypoint.packagesFile))}');
} }
vmArgs.add(executableUrl.toString()); vmArgs.add(executableUrl.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment