diff --git a/script/tool/pubspec.yaml b/script/tool/pubspec.yaml index 73790da9899..ee24eb90d4f 100644 --- a/script/tool/pubspec.yaml +++ b/script/tool/pubspec.yaml @@ -6,29 +6,28 @@ publish_to: none dependencies: args: ^2.1.0 - async: ^2.6.1 - collection: ^1.15.0 + async: ^2.10.0 + collection: ^1.17.0 colorize: ^3.0.0 - file: ^6.1.0 - # Pin git to 2.0.x until dart >=2.18 is legacy - git: '>=2.0.0 <2.1.0' - http: '>=0.13.3 <2.0.0' + file: ^7.0.1 + git: ^2.0.0 + http: ^1.0.0 http_multi_server: ^3.0.1 - meta: ^1.3.0 - path: ^1.8.0 - platform: ^3.0.0 + meta: ^1.10.0 + path: ^1.8.3 + platform: ^3.0.2 pub_semver: ^2.0.0 - pubspec_parse: ^1.0.0 + pubspec_parse: ^1.2.2 quiver: ^3.0.1 - test: ^1.17.3 - uuid: ^3.0.4 + test: ^1.24.0 + uuid: ^4.5.1 yaml: ^3.1.0 yaml_edit: ^2.0.2 dev_dependencies: - build_runner: ^2.0.3 - matcher: ^0.12.10 + build_runner: ^2.2.1 + matcher: ^0.12.15 mockito: ^5.4.4 environment: - sdk: '>=3.0.0 <4.0.0' + sdk: ^3.1.0 diff --git a/script/tool/test/common/package_command_test.mocks.dart b/script/tool/test/common/package_command_test.mocks.dart index 6c923c7ca26..1ac9d406f1e 100644 --- a/script/tool/test/common/package_command_test.mocks.dart +++ b/script/tool/test/common/package_command_test.mocks.dart @@ -244,12 +244,16 @@ class MockGitDir extends _i1.Mock implements _i4.GitDir { _i6.Future<_i10.ProcessResult> runCommand( Iterable? args, { bool? throwOnError = true, + bool? echoOutput = false, }) => (super.noSuchMethod( Invocation.method( #runCommand, [args], - {#throwOnError: throwOnError}, + { + #throwOnError: throwOnError, + #echoOutput: echoOutput, + }, ), returnValue: _i6.Future<_i10.ProcessResult>.value( _i5.dummyValue<_i10.ProcessResult>( @@ -257,7 +261,10 @@ class MockGitDir extends _i1.Mock implements _i4.GitDir { Invocation.method( #runCommand, [args], - {#throwOnError: throwOnError}, + { + #throwOnError: throwOnError, + #echoOutput: echoOutput, + }, ), )), ) as _i6.Future<_i10.ProcessResult>); @@ -274,7 +281,7 @@ class MockGitDir extends _i1.Mock implements _i4.GitDir { @override _i6.Future<_i2.Commit?> updateBranch( String? branchName, - _i6.Future Function(_i10.Directory)? populater, + _i6.Future Function(_i10.Directory)? populater, String? commitMessage, ) => (super.noSuchMethod(