Unverified Commit 545c292c authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Pass --trace to pub when in verbose mode (#15169)

https://github.com/dart-lang/pub/issues/1812
parent 8709e5e7
......@@ -14,6 +14,7 @@ import '../base/process.dart';
import '../base/utils.dart';
import '../cache.dart';
import '../globals.dart';
import '../runner/flutter_command.dart';
import 'sdk.dart';
/// Represents Flutter-specific data that is added to the `PUB_ENVIRONMENT`
......@@ -93,7 +94,10 @@ Future<Null> pubGet({
'Running "flutter packages $command" in ${fs.path.basename(directory)}...',
expectSlowOperation: true,
);
final List<String> args = <String>['--verbosity=warning', command, '--no-precompile'];
final List<String> args = <String>['--verbosity=warning'];
if (FlutterCommand.current != null && FlutterCommand.current.globalResults['verbose'])
args.add('--trace');
args.addAll(<String>[command, '--no-precompile']);
if (offline)
args.add('--offline');
try {
......
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