Skip to content

Commit

Permalink
Run "pub run" against the .packages file.
Browse files Browse the repository at this point in the history
This reverts commit 7fbc104, which
reverted commit dc626af.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1272903002 .
  • Loading branch information
nex3 committed Aug 6, 2015
1 parent b308456 commit 097ed87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/src/entrypoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class Entrypoint {
/// The path to the entrypoint's "packages" directory.
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.
bool get lockFileExists => _lockFile != null || entryExists(lockFilePath);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/executable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Future<int> runExecutable(Entrypoint entrypoint, String package,
// helpful for the subprocess to be able to spawn Dart with
// Platform.executableArguments and have that work regardless of the working
// directory.
vmArgs.add('--package-root=${p.toUri(p.absolute(entrypoint.packagesDir))}');
vmArgs.add('--packages=${p.toUri(p.absolute(entrypoint.packagesFile))}');
}

vmArgs.add(executableUrl.toString());
Expand Down

0 comments on commit 097ed87

Please sign in to comment.