flutter_test from sdk depends on path 1.8.0
Closed this issue · 8 comments
Not sure if I should post this on the Flutter repo but it's impossible to upgrade to 1.8.1 with Flutter 2.8.1 • channel stable
because of flutter_test
.
Error message is:
Because every version of flutter_test from sdk depends on path 1.8.0 and [app_name] depends on path ^1.8.1, flutter_test from sdk is forbidden.
Same problem 👍 up
Same problem with Flutter 2.5.3 • channel stable because of flutter_test.
Erroe log:
Because every version of flutter_test from sdk depends on path 1.8.0 and f_app_application depends on path ^1.8.1, flutter_test from sdk is forbidden.
So, because f_app_application depends on flutter_test any from sdk, version solving failed.
pub get failed (1; So, because f_app_application depends on flutter_test any from sdk, version solving failed.)
Update: I did post it on the Flutter repo and it's being worked on:
Having the same problem, any updates so far?
Because <app> depends on flutter_test from sdk which depends on path 1.8.0, path 1.8.0 is required.
So, because <app> depends on path ^1.8.1, version solving failed.
pub get failed (1; So, because <app> depends on path ^1.8.1, version solving failed.)
Using :
dependencies:
flutter:
sdk: flutter
path: ^1.8.1
seems to work on master channel, but I keep getting the same error Because every version of flutter_test from sdk depends on path 1.8.0 and [app_name] depends on path ^1.8.1, flutter_test from sdk is forbidden.
with the stable channel.
Using :
dependencies: flutter: sdk: flutter path: ^1.8.1
seems to work on master channel, but I keep getting the same error
Because every version of flutter_test from sdk depends on path 1.8.0 and [app_name] depends on path ^1.8.1, flutter_test from sdk is forbidden.
with the stable channel.
Yes, the fix made it to the master channel. I suppose it's in beta version 2.10.0-0.1.pre as well? So it should make it to stable pretty soon.
Actually, I just checked and it's not yet on beta channel 🤷
There is nothing we can do in a package to impact the behavior of flutter pinning packages, If flutter
or flutter_test
introduce a version constraint you'll need to work with the flutter team on getting things updated.
flutter channel beta
flutter upgrade
Works for me :)