ivoleitao / stash

Key-value store abstraction with plain and cache driven semantics and a pluggable backend architecture.
MIT License
87 stars 16 forks source link

Stash 3.0.0 is incompatible with `flutter_test` #12

Closed tjarvstrand closed 3 years ago

tjarvstrand commented 3 years ago

Describe the bug By extension Stash is unfortunately pretty much incompatible with most flutter projects

Because every version of flutter_test from sdk depends on async 2.6.1 and stash >=3.0.0-dev.2 depends on async ^2.7.0, flutter_test from sdk is incompatible with stash >=3.0.0-dev.2.
And because stash_dio >=3.0.0 depends on stash ^3.0.0, flutter_test from sdk is incompatible with stash_dio >=3.0.0.
So, because alltold depends on both stash_dio 3.0.0 and flutter_test any from sdk, version solving failed.
tjarvstrand commented 3 years ago

FWIW adding this to pubspec.yaml seems to work as a temporary fix:

dependency_overrides:
  async: 2.6.1
ivoleitao commented 3 years ago

I can go back to the previous version I think I'm not using anything special from 2.7.0. Let me check

ivoleitao commented 3 years ago

I've downgraded to version 2.6.1 of async in version 3.0.1 that I've just published