Update tools to use analyzer from vended Dart SDK. (#5900)
* Update tools to use `analyzer` from vended Dart SDK. * updates `flutter_tools` and `flutter_test` to use the SDK-vended `analyzer` package * tweaks dependency tracking logic to only record the SDK-vended `analyzer` so as not to crash on spurious conflicts (due to transitive dependencies) * Review fixes.
This commit is contained in:
@@ -8,9 +8,13 @@ dependencies:
|
||||
test: 0.12.15+4
|
||||
|
||||
# We don't actually depend on 'analyzer', but 'test' and 'flutter_tools' do.
|
||||
# We pin the version of analyzer we depend on to avoid version skew across our
|
||||
# packages.
|
||||
analyzer: 0.28.2-alpha.0
|
||||
# Like 'flutter_tools', we use the version of the analyzer in the vended Dart
|
||||
# SDK as defined in the `dependency_overrides` below.
|
||||
analyzer: any
|
||||
|
||||
flutter:
|
||||
path: ../flutter
|
||||
|
||||
dependency_overrides:
|
||||
analyzer:
|
||||
path: ../../bin/cache/dart-sdk/lib/analyzer
|
||||
|
||||
Reference in New Issue
Block a user