Pub's version solver is doing a global analysis of all of the version constraints in all of your dependencies. Not just that, but each version of a dependency has different constraints.
This means constraint failures can be non-local. It's not just that
async_await
has a constraint that causes a problem. It could be that:
async_await
adds a constraint on foo
.foo
than you would otherwise.foo
.In practice, most of the errors like this we've seen recently seem to have the analyzer package as their lynchpin. The analyzer folks rev that package really frequently (or at least did for a while) and change its minor version often. That means there are a lot of packages that depend on disjoint sets of analyzer versions.
Like @Günter suggests, the workaround is to override a couple of dependencies, so that can cause its own problems. (It basically turns a "pub get time" failure into a possible runtime failure.)
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.