Unverified Commit 0a9a43b9 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Use flutter pub instead of dart pub (#99159)

parent c7f07bbe
......@@ -1578,7 +1578,7 @@ Future<void> _checkConsumerDependencies() async {
// Parse the output of pub deps --json to determine all of the
// current packages used by the core set of flutter packages.
for (final String package in kCorePackages) {
final ProcessResult result = await Process.run(dart, <String>[
final ProcessResult result = await Process.run(flutter, <String>[
'pub',
'deps',
'--json',
......
......@@ -27,7 +27,7 @@ class PackagesCommand extends FlutterCommand {
addSubcommand(PackagesTestCommand());
addSubcommand(PackagesForwardCommand('publish', 'Publish the current package to pub.dartlang.org', requiresPubspec: true));
addSubcommand(PackagesForwardCommand('downgrade', 'Downgrade packages in a Flutter project', requiresPubspec: true));
addSubcommand(PackagesForwardCommand('deps', 'Print package dependencies', requiresPubspec: true));
addSubcommand(PackagesForwardCommand('deps', 'Print package dependencies')); // path to package can be specified with --directory argument
addSubcommand(PackagesForwardCommand('run', 'Run an executable from a package', requiresPubspec: true));
addSubcommand(PackagesForwardCommand('cache', 'Work with the Pub system cache'));
addSubcommand(PackagesForwardCommand('version', 'Print Pub version'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment