Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify-web-demos action is failing #897

Closed
johnpryan opened this issue Sep 20, 2021 · 2 comments · Fixed by #904
Closed

verify-web-demos action is failing #897

johnpryan opened this issue Sep 20, 2021 · 2 comments · Fixed by #904
Assignees

Comments

@johnpryan
Copy link
Contributor

The filipino_cuisine sample doesn't pass static analysis with Flutter 2.5:

https://github.com/flutter/samples/pull/896/checks?check_run_id=3588652279

@johnpryan
Copy link
Contributor Author

It looks like there's a few other packages that have analyzer warnings:

2021-09-21T07:16:35.7845126Z Running "flutter pub get" in samples_index...                   
2021-09-21T07:16:35.7867446Z Warning: You are using these overridden dependencies:
2021-09-21T07:16:35.7869710Z ! sass 1.32.10 (1.42.0 available)
2021-09-21T07:16:35.8970440Z Running "flutter pub get" in samples_index...                    1,192ms
2021-09-21T07:16:44.3679044Z Analyzing samples_index...                                      
2021-09-21T07:16:44.3684279Z 
2021-09-21T07:16:44.3719140Z    info • Sort directive sections alphabetically • lib/cookbook.dart:11:1 • directives_ordering
2021-09-21T07:16:44.3720579Z    info • Sort directive sections alphabetically • lib/src/data.dart:10:1 • directives_ordering
2021-09-21T07:16:44.3722073Z warning • The 'author' field is no longer used and can be removed • pubspec.yaml:4:1 • deprecated_field
2021-09-21T07:16:44.3723419Z    info • Sort directive sections alphabetically • tool/grind.dart:12:1 • directives_ordering
2021-09-21T07:16:44.3724774Z    info • Sort directive sections alphabetically • tool/grind.dart:13:1 • directives_ordering
2021-09-21T07:16:44.3731260Z 
2021-09-21T07:16:44.3780589Z 5 issues found. (ran in 8.1s)
2021-09-21T07:16:44.3954501Z �[31m  Failed! (1) – samples_index – `flutter analyze --fatal-infos --fatal-warnings .
2021-09-21T07:16:54.0502033Z Running "flutter pub get" in particle_background...                391ms
2021-09-21T07:16:56.9382270Z Analyzing particle_background...                                
2021-09-21T07:16:56.9393592Z 
2021-09-21T07:16:56.9434317Z warning • The 'author' field is no longer used and can be removed • pubspec.yaml:3:1 • deprecated_field
2021-09-21T07:16:56.9444532Z 
2021-09-21T07:16:56.9503118Z 1 issue found. (ran in 2.6s)
2021-09-21T07:16:56.9692365Z �[31m  Failed! (1) – particle_background – `flutter analyze --fatal-infos --fatal-warnings .`�[0m
2021-09-21T07:17:19.5244737Z form_app (12 of 13)�[0m
2021-09-21T07:17:19.5246875Z �[35m  Running `flutter pub pub upgrade --no-precompile`�[0m
2021-09-21T07:17:20.1884074Z Resolving dependencies...
2021-09-21T07:17:21.1796631Z Because mockito >=4.0.0 <=4.1.1 depends on test_api ^0.2.1 and mockito >=4.1.1+1 <4.1.2 depends on test_api >=0.2.1 <0.4.0, mockito >=4.0.0 <4.1.2 requires test_api >=0.2.1 <0.4.0.
2021-09-21T07:17:21.1799508Z And because mockito >=4.1.2 <=5.0.0-nullsafety.7 depends on test_api ^0.2.19-nullsafety and every version of flutter_test from sdk depends on test_api 0.4.2, flutter_test from sdk is incompatible with mockito >=4.0.0 <=5.0.0-nullsafety.7.
2021-09-21T07:17:21.1801179Z So, because form_app depends on both mockito ^4.1.1 and flutter_test any from sdk, version solving failed.
2021-09-21T07:17:21.2343852Z pub finished with exit code 1
2021-09-21T07:17:21.2490587Z �[31m  Failed! (1) – form_app – `flutter pub pub upgrade --no-precompile`
2021-09-21T07:17:24.8493547Z IO  : HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/boolean_selector
2021-09-21T07:17:24.8494189Z     | took 0:00:00.091307
2021-09-21T07:17:24.8494787Z     | transfer-encoding: chunked
2021-09-21T07:17:24.8495240Z     | date: Tue, 21 Sep 2021 07:17:23 GMT
2021-09-21T07:17:24.8495808Z     | content-encoding: gzip
2021-09-21T07:17:24.8496393Z     | vary: Accept-Encoding
2021-09-21T07:17:24.8497131Z     | strict-transport-security: max-age=31536000; preload
2021-09-21T07:17:24.8497673Z     | via: 1.1 google
2021-09-21T07:17:24.8498287Z     | content-type: application/json; charset="utf-8"
2021-09-21T07:17:24.8498976Z     | x-frame-options: SAMEORIGIN
2021-09-21T07:17:24.8499594Z     | x-xss-protection: 1; mode=block
2021-09-21T07:17:24.8500262Z     | x-content-type-options: nosniff
2021-09-21T07:17:24.8500771Z     | server: dart:io with Shelf
2021-09-21T07:17:24.8501429Z IO  : HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/matcher
2021-09-21T07:17:24.8502045Z     | took 0:00:00.094007
2021-09-21T07:17:24.8502583Z     | transfer-encoding: chunked
2021-09-21T07:17:24.8503049Z     | date: Tue, 21 Sep 2021 07:17:23 GMT
2021-09-21T07:17:24.8503597Z     | content-encoding: gzip
2021-09-21T07:17:24.8504180Z     | vary: Accept-Encoding
2021-09-21T07:17:24.8504926Z     | strict-transport-security: max-age=31536000; preload
2021-09-21T07:17:24.8505448Z     | via: 1.1 google
2021-09-21T07:17:24.8506066Z     | content-type: application/json; charset="utf-8"
2021-09-21T07:17:24.8506740Z     | x-frame-options: SAMEORIGIN
2021-09-21T07:17:24.8507455Z     | x-xss-protection: 1; mode=block
2021-09-21T07:17:24.8508130Z     | x-content-type-options: nosniff
2021-09-21T07:17:24.8508646Z     | server: dart:io with Shelf
2021-09-21T07:17:24.8509340Z IO  : HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/stream_channel
2021-09-21T07:17:24.8509958Z     | took 0:00:00.091619
2021-09-21T07:17:24.8510505Z     | transfer-encoding: chunked
2021-09-21T07:17:24.8510955Z     | date: Tue, 21 Sep 2021 07:17:23 GMT
2021-09-21T07:17:24.8511514Z     | content-encoding: gzip
2021-09-21T07:17:24.8512085Z     | vary: Accept-Encoding
2021-09-21T07:17:24.8512829Z     | strict-transport-security: max-age=31536000; preload
2021-09-21T07:17:24.8513457Z     | via: 1.1 google
2021-09-21T07:17:24.8514073Z     | content-type: application/json; charset="utf-8"
2021-09-21T07:17:24.8514757Z     | x-frame-options: SAMEORIGIN
2021-09-21T07:17:24.8515371Z     | x-xss-protection: 1; mode=block
2021-09-21T07:17:24.8516047Z     | x-content-type-options: nosniff
2021-09-21T07:17:24.8516556Z     | server: dart:io with Shelf
2021-09-21T07:17:24.8517216Z IO  : HTTP response 200 OK for GET https://pub.dartlang.org/api/packages/typed_data
2021-09-21T07:17:24.8517839Z     | took 0:00:00.088323
2021-09-21T07:17:24.8518371Z     | transfer-encoding: chunked
2021-09-21T07:17:24.8518838Z     | date: Tue, 21 Sep 2021 07:17:23 GMT
2021-09-21T07:17:24.8519382Z     | content-encoding: gzip
2021-09-21T07:17:24.8519963Z     | vary: Accept-Encoding
2021-09-21T07:17:24.8520703Z     | strict-transport-security: max-age=31536000; preload
2021-09-21T07:17:24.8521231Z     | via: 1.1 google
2021-09-21T07:17:24.8521864Z     | content-type: application/json; charset="utf-8"
2021-09-21T07:17:24.8522539Z     | x-frame-options: SAMEORIGIN
2021-09-21T07:17:24.8523166Z     | x-xss-protection: 1; mode=block
2021-09-21T07:17:24.8523844Z     | x-content-type-options: nosniff
2021-09-21T07:17:24.8524341Z     | server: dart:io with Shelf
2021-09-21T07:17:24.8524923Z SLVR:                                                                                                                               fact: built_value 8.0.6 depends on built_collection ^5.0.0
2021-09-21T07:17:24.8525623Z SLVR:                                                                                                                               fact: built_value 8.0.6 depends on collection ^1.15.0
2021-09-21T07:17:24.8526299Z SLVR:                                                                                                                               fact: built_value 8.0.6 depends on fixnum ^1.0.0
2021-09-21T07:17:24.8526913Z SLVR:                                                                                                                                 selecting built_value 8.0.6
2021-09-21T07:17:24.8527486Z SLVR:                                                                                                                                 derived: fixnum ^1.0.0
2021-09-21T07:17:24.8528056Z SLVR:                                                                                                                                 derived: built_collection ^5.0.0
2021-09-21T07:17:24.8528687Z SLVR:                                                                                                                                   selecting built_collection 5.0.0
2021-09-21T07:17:24.8529459Z SLVR:                                                                                                                                   fact: package_config 1.9.3 depends on path ^1.6.4
2021-09-21T07:17:24.8530130Z SLVR:                                                                                                                                   fact: package_config 1.9.3 depends on charcode ^1.1.0
2021-09-21T07:17:24.8530801Z SLVR:                                                                                                                                     selecting package_config 1.9.3
2021-09-21T07:17:24.8531535Z SLVR:                                                                                                                                     fact: convert 3.0.0 depends on typed_data ^1.3.0
2021-09-21T07:17:24.8532148Z SLVR:                                                                                                                                       selecting convert 3.0.0
2021-09-21T07:17:24.8532748Z SLVR:                                                                                                                                       fact: cli_util 0.3.0 depends on meta ^1.3.0
2021-09-21T07:17:24.8533368Z SLVR:                                                                                                                                       fact: cli_util 0.3.0 depends on path ^1.8.0
2021-09-21T07:17:24.8534007Z SLVR:                                                                                                                                         selecting cli_util 0.3.0
2021-09-21T07:17:24.8534652Z SLVR:                                                                                                                                         fact: _fe_analyzer_shared 14.0.0 depends on meta ^1.0.2
2021-09-21T07:17:24.8535325Z SLVR:                                                                                                                                           selecting _fe_analyzer_shared 14.0.0
2021-09-21T07:17:24.8535919Z SLVR:                                                                                                                                             selecting fixnum 1.0.0
2021-09-21T07:17:24.8536920Z SLVR:                                                                                                                                             fact: mockito >=4.1.4 <5.0.0-∞ depends on analyzer >=0.39.15 <0.42.0
2021-09-21T07:17:24.8537905Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.2-∞ depends on build ^1.3.0
2021-09-21T07:17:24.8538873Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.1-∞ depends on code_builder ^3.4.0
2021-09-21T07:17:24.8539923Z SLVR:                                                                                                                                             fact: mockito >=3.0.0-beta+3 <5.0.0-nullsafety.0 depends on collection ^1.1.0
2021-09-21T07:17:24.8540959Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.2-∞ depends on dart_style ^1.3.6
2021-09-21T07:17:24.8541995Z SLVR:                                                                                                                                             fact: mockito >=3.0.0-beta+3 <5.0.0-nullsafety.0 depends on matcher ^0.12.3
2021-09-21T07:17:24.8543049Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.0-∞ depends on meta ^1.3.0-nullsafety
2021-09-21T07:17:24.8544022Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.3-∞ depends on source_gen ^0.9.6
2021-09-21T07:17:24.8545019Z SLVR:                                                                                                                                             fact: mockito >=4.1.2 <5.0.0-∞ depends on test_api ^0.2.19-nullsafety
2021-09-21T07:17:24.8545952Z SLVR:                                                                                                                                             derived: not mockito >=4.1.2 <5.0.0-∞
2021-09-21T07:17:24.8546919Z SLVR:                                                                                                                                             fact: mockito >=3.0.0-beta+3 <4.1.2-∞ depends on meta ^1.0.4
2021-09-21T07:17:24.8547599Z SLVR:                                                                                                                                             fact: mockito >=4.0.0 <4.1.1+1 depends on test_api ^0.2.1
2021-09-21T07:17:24.8548221Z SLVR:                                                                                                                                             derived: not mockito >=4.0.0 <4.1.1+1
2021-09-21T07:17:24.8549104Z SLVR:                                                                                                                                             fact: no versions of mockito match >4.1.1+1 <4.1.2-∞
2021-09-21T07:17:24.8550116Z SLVR:                                                                                                                                             conflict: no versions of mockito match >4.1.1+1 <4.1.2-∞
2021-09-21T07:17:24.8551142Z SLVR:                                                                                                                                             ! mockito >4.1.1+1 <4.1.2-∞ is partially satisfied by not mockito >=4.0.0 <4.1.1+1
2021-09-21T07:17:24.8551905Z SLVR:                                                                                                                                             ! which is caused by "mockito >=4.0.0 <4.1.1+1 depends on test_api ^0.2.1"
2021-09-21T07:17:24.8552896Z SLVR:                                                                                                                                             ! thus: mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞ requires test_api ^0.2.1
2021-09-21T07:17:24.8553729Z SLVR:               fact: mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞ requires test_api ^0.2.1
2021-09-21T07:17:24.8554453Z SLVR:               derived: not mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞
2021-09-21T07:17:24.8555233Z SLVR:               conflict: mockito >=4.1.2 <5.0.0-∞ depends on test_api ^0.2.19-nullsafety
2021-09-21T07:17:24.8556110Z SLVR:               ! mockito >=4.1.2 <5.0.0-∞ is partially satisfied by not mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞
2021-09-21T07:17:24.8556987Z SLVR:               ! which is caused by "mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞ requires test_api ^0.2.1"
2021-09-21T07:17:24.8557791Z SLVR:               ! thus: mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞ requires test_api ^0.2.1
2021-09-21T07:17:24.8558538Z SLVR:           fact: mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞ requires test_api ^0.2.1
2021-09-21T07:17:24.8559256Z SLVR:           derived: not mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞
2021-09-21T07:17:24.8559799Z SLVR:           conflict: mockito 4.1.1+1 depends on test_api >=0.2.1 <0.4.0
2021-09-21T07:17:24.8560623Z SLVR:           ! mockito 4.1.1+1 is partially satisfied by not mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞
2021-09-21T07:17:24.8561483Z SLVR:           ! which is caused by "mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞ requires test_api ^0.2.1"
2021-09-21T07:17:24.8562243Z SLVR:           ! thus: mockito >=4.0.0 <5.0.0-∞ requires test_api >=0.2.1 <0.4.0
2021-09-21T07:17:24.8562956Z SLVR:   fact: mockito >=4.0.0 <5.0.0-∞ requires test_api >=0.2.1 <0.4.0
2021-09-21T07:17:24.8563437Z SLVR:   derived: test_api >=0.2.1 <0.4.0
2021-09-21T07:17:24.8563911Z SLVR:   derived: not flutter_test 0.0.0 from sdk
2021-09-21T07:17:24.8564501Z SLVR:   fact: every version of flutter_test from sdk depends on async 2.8.1
2021-09-21T07:17:24.8565200Z SLVR:   fact: every version of flutter_test from sdk depends on boolean_selector 2.1.0
2021-09-21T07:17:24.8565943Z SLVR:   fact: every version of flutter_test from sdk depends on characters 1.1.0
2021-09-21T07:17:24.8566638Z SLVR:   fact: every version of flutter_test from sdk depends on charcode 1.3.1
2021-09-21T07:17:24.8567316Z SLVR:   fact: every version of flutter_test from sdk depends on clock 1.1.0
2021-09-21T07:17:24.8568113Z SLVR:   fact: every version of flutter_test from sdk depends on collection 1.15.0
2021-09-21T07:17:24.8568812Z SLVR:   fact: every version of flutter_test from sdk depends on fake_async 1.2.0
2021-09-21T07:17:24.8569744Z SLVR:   fact: every version of flutter_test from sdk depends on flutter any from sdk
2021-09-21T07:17:24.8570453Z SLVR:   fact: every version of flutter_test from sdk depends on matcher 0.12.10
2021-09-21T07:17:24.8571132Z SLVR:   fact: every version of flutter_test from sdk depends on meta 1.7.0
2021-09-21T07:17:24.8571804Z SLVR:   fact: every version of flutter_test from sdk depends on path 1.8.0
2021-09-21T07:17:24.8572544Z SLVR:   fact: every version of flutter_test from sdk depends on source_span 1.8.1
2021-09-21T07:17:24.8573252Z SLVR:   fact: every version of flutter_test from sdk depends on stack_trace 1.10.0
2021-09-21T07:17:24.8573961Z SLVR:   fact: every version of flutter_test from sdk depends on stream_channel 2.1.0
2021-09-21T07:17:24.8574682Z SLVR:   fact: every version of flutter_test from sdk depends on string_scanner 1.1.0
2021-09-21T07:17:24.8575392Z SLVR:   fact: every version of flutter_test from sdk depends on term_glyph 1.2.0
2021-09-21T07:17:24.8576067Z SLVR:   fact: every version of flutter_test from sdk depends on test_api 0.4.2
2021-09-21T07:17:24.8576752Z SLVR:   fact: every version of flutter_test from sdk depends on typed_data 1.3.0
2021-09-21T07:17:24.8577445Z SLVR:   fact: every version of flutter_test from sdk depends on vector_math 2.1.0
2021-09-21T07:17:24.8578007Z SLVR:   derived: vector_math 2.1.0
2021-09-21T07:17:24.8578442Z SLVR:   derived: typed_data 1.3.0
2021-09-21T07:17:24.8579007Z SLVR:   conflict: every version of flutter_test from sdk depends on test_api 0.4.2
2021-09-21T07:17:24.8579638Z SLVR:   ! not test_api 0.4.2 is satisfied by test_api >=0.2.1 <0.4.0
2021-09-21T07:17:24.8580446Z SLVR:   ! which is caused by "mockito >=4.0.0 <5.0.0-∞ requires test_api >=0.2.1 <0.4.0"
2021-09-21T07:17:24.8581284Z SLVR:   ! thus: flutter_test from sdk is incompatible with mockito >=4.0.0 <5.0.0-∞
2021-09-21T07:17:24.8582054Z SLVR:   ! mockito >=4.0.0 <5.0.0-∞ is satisfied by mockito ^4.1.1
2021-09-21T07:17:24.8582607Z SLVR:   ! which is caused by "form_app depends on mockito ^4.1.1"
2021-09-21T07:17:24.8583162Z SLVR:   ! thus: flutter_test from sdk is forbidden
2021-09-21T07:17:24.8583758Z SLVR:   ! flutter_test any from sdk is satisfied by flutter_test any from sdk
2021-09-21T07:17:24.8584422Z SLVR:   ! which is caused by "form_app depends on flutter_test any from sdk"
2021-09-21T07:17:24.8584984Z SLVR:   ! thus: version solving failed
2021-09-21T07:17:24.8585459Z SLVR: Version solving took 0:00:01.430966 seconds.
2021-09-21T07:17:24.8585908Z     | Tried 1 solutions.
2021-09-21T07:17:24.8586377Z FINE: Resolving dependencies finished (1.4s).
2021-09-21T07:17:24.8587448Z ERR : Because no versions of mockito match >4.1.1+1 <4.1.2 and mockito >=4.0.0 <=4.1.1 depends on test_api ^0.2.1, mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞ requires test_api ^0.2.1.
2021-09-21T07:17:24.8588693Z     | And because mockito >=4.1.2 <=5.0.0-nullsafety.7 depends on test_api ^0.2.19-nullsafety, mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞ requires test_api ^0.2.1.
2021-09-21T07:17:24.8590138Z     | And because mockito 4.1.1+1 depends on test_api >=0.2.1 <0.4.0 and every version of flutter_test from sdk depends on test_api 0.4.2, flutter_test from sdk is incompatible with mockito >=4.0.0 <=5.0.0-nullsafety.7.
2021-09-21T07:17:24.8591249Z     | So, because form_app depends on both mockito ^4.1.1 and flutter_test any from sdk, version solving failed.
2021-09-21T07:17:24.8591938Z FINE: Exception type: SolveFailure
2021-09-21T07:17:24.8592656Z FINE: package:pub/src/solver/version_solver.dart 310:5                    VersionSolver._resolveConflict
2021-09-21T07:17:24.8593533Z     | package:pub/src/solver/version_solver.dart 131:27                   VersionSolver._propagate
2021-09-21T07:17:24.8594461Z     | package:pub/src/solver/version_solver.dart 95:11                    VersionSolver.solve.<fn>
2021-09-21T07:17:24.8595112Z     | ===== asynchronous gap ===========================
2021-09-21T07:17:24.8595644Z     | dart:async                                                          Future.catchError
2021-09-21T07:17:24.8596408Z     | package:pub/src/utils.dart 112:52                                   captureErrors.wrappedCallback
2021-09-21T07:17:24.8597177Z     | package:stack_trace                                                 Chain.capture
2021-09-21T07:17:24.8597796Z     | package:pub/src/utils.dart 125:11                                   captureErrors
2021-09-21T07:17:24.8598445Z     | package:pub/src/command.dart 168:13                                 PubCommand.run
2021-09-21T07:17:24.8599265Z     | package:args/command_runner.dart 209:27                             CommandRunner.runCommand
2021-09-21T07:17:24.8600164Z     | package:pub/src/command_runner.dart 166:24                          PubCommandRunner.runCommand
2021-09-21T07:17:24.8601022Z     | package:pub/src/command_runner.dart 151:20                          PubCommandRunner.run
2021-09-21T07:17:24.8601758Z     | /b/s/w/ir/cache/builder/sdk/third_party/pkg/pub/bin/pub.dart 11:48  main
2021-09-21T07:17:24.8602420Z ---- End log transcript ----
2021-09-21T07:17:24.8603186Z pub get failed (1; ---- End log transcript ----)
2021-09-21T07:17:24.8604017Z �[31m  Failed! (1) – form_app – `flutter analyze --fatal-infos --fatal-warnings .`

@johnpryan johnpryan reopened this Oct 1, 2021
@johnpryan
Copy link
Contributor Author

It looks like this is still failing verifying form_app, which uses mockito:

2021-09-30T22:46:25.2814783Z SLVR:   conflict: every version of flutter_test from sdk depends on test_api 0.4.2
2021-09-30T22:46:25.2815451Z SLVR:   ! not test_api 0.4.2 is satisfied by test_api >=0.2.1 <0.4.0
2021-09-30T22:46:25.2816389Z SLVR:   ! which is caused by "mockito >=4.0.0 <5.0.0-∞ requires test_api >=0.2.1 <0.4.0"
2021-09-30T22:46:25.2817306Z SLVR:   ! thus: flutter_test from sdk is incompatible with mockito >=4.0.0 <5.0.0-2021-09-30T22:46:25.2818209Z SLVR:   ! mockito >=4.0.0 <5.0.0-is satisfied by mockito ^4.1.1
2021-09-30T22:46:25.2818881Z SLVR:   ! which is caused by "form_app depends on mockito ^4.1.1"
2021-09-30T22:46:25.2819472Z SLVR:   ! thus: flutter_test from sdk is forbidden
2021-09-30T22:46:25.2820180Z SLVR:   ! flutter_test any from sdk is satisfied by flutter_test any from sdk
2021-09-30T22:46:25.2820946Z SLVR:   ! which is caused by "form_app depends on flutter_test any from sdk"
2021-09-30T22:46:25.2821556Z SLVR:   ! thus: version solving failed
2021-09-30T22:46:25.2822145Z SLVR: Version solving took 0:00:01.444780 seconds.
2021-09-30T22:46:25.2822644Z     | Tried 1 solutions.
2021-09-30T22:46:25.2823252Z FINE: Resolving dependencies finished (1.4s).
2021-09-30T22:46:25.2824356Z ERR : Because no versions of mockito match >4.1.1+1 <4.1.2 and mockito >=4.0.0 <=4.1.1 depends on test_api ^0.2.1, mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <4.1.2-∞ requires test_api ^0.2.1.
2021-09-30T22:46:25.2825701Z     | And because mockito >=4.1.2 <=5.0.0-nullsafety.7 depends on test_api ^0.2.19-nullsafety, mockito >=4.0.0 <4.1.1+1 or >4.1.1+1 <5.0.0-∞ requires test_api ^0.2.1.
2021-09-30T22:46:25.2827289Z     | And because mockito 4.1.1+1 depends on test_api >=0.2.1 <0.4.0 and every version of flutter_test from sdk depends on test_api 0.4.2, flutter_test from sdk is incompatible with mockito >=4.0.0 <=5.0.0-nullsafety.7.
2021-09-30T22:46:25.2828519Z     | So, because form_app depends on both mockito ^4.1.1 and flutter_test any from sdk, version solving failed.
2021-09-30T22:46:25.2829259Z FINE: Exception type: SolveFailure
2021-09-30T22:46:25.2830077Z FINE: package:pub/src/solver/version_solver.dart 310:5                    VersionSolver._resolveConflict
2021-09-30T22:46:25.2831082Z     | package:pub/src/solver/version_solver.dart 131:27                   VersionSolver._propagate
2021-09-30T22:46:25.2832013Z     | package:pub/src/solver/version_solver.dart 95:11                    VersionSolver.solve.<fn>
2021-09-30T22:46:25.2832783Z     | ===== asynchronous gap ===========================
2021-09-30T22:46:25.2833348Z     | dart:async                                                          Future.catchError
2021-09-30T22:46:25.2834228Z     | package:pub/src/utils.dart 112:52                                   captureErrors.wrappedCallback
2021-09-30T22:46:25.2835116Z     | package:stack_trace                                                 Chain.capture
2021-09-30T22:46:25.2835800Z     | package:pub/src/utils.dart 125:11                                   captureErrors
2021-09-30T22:46:25.2836546Z     | package:pub/src/command.dart 168:13                                 PubCommand.run
2021-09-30T22:46:25.2837540Z     | package:args/command_runner.dart 209:27                             CommandRunner.runCommand
2021-09-30T22:46:25.2838519Z     | package:pub/src/command_runner.dart 166:24                          PubCommandRunner.runCommand
2021-09-30T22:46:25.2839543Z     | package:pub/src/command_runner.dart 151:20                          PubCommandRunner.run
2021-09-30T22:46:25.2840317Z     | /b/s/w/ir/cache/builder/sdk/third_party/pkg/pub/bin/pub.dart 11:48  main
2021-09-30T22:46:25.2841133Z ---- End log transcript ----
2021-09-30T22:46:25.2841848Z pub get failed (1; ---- End log transcript ----)
2021-09-30T22:46:25.2842726Z �[31m  Failed! (1) – form_app – `flutter analyze --fatal-infos --fatal-warnings .`�[0m
2021-09-30T22:46:25.2843631Z �[31m22 of 24 (91.67%)�[0m
2021-09-30T22:46:25.2844083Z �[35m
2021-09-30T22:46:25.2844585Z _tool (13 of 13)�[0m
2021-09-30T22:46:25.2845258Z �[35m  Running `flutter pub pub upgrade --no-precompile`�[0m
2021-09-30T22:46:25.2869166Z Resolving dependencies...

https://github.com/flutter/samples/runs/3761525352

@johnpryan johnpryan self-assigned this Oct 4, 2021
joshpeterson30489 added a commit to joshpeterson30489/flutter_maps_firestore that referenced this issue Sep 30, 2022
untitled-alvin pushed a commit to untitled-alvin/web that referenced this issue Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant