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

Bump to latest analyzer #3774

Merged
merged 12 commits into from
Dec 16, 2024
6 changes: 5 additions & 1 deletion build/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
sdk: ^3.6.0-228.0.dev

dependencies:
analyzer: ^6.9.0
analyzer: '>=6.9.0 <8.0.0'
async: ^2.5.0
convert: ^3.0.0
crypto: ^3.0.0
Expand All @@ -27,6 +27,10 @@ dev_dependencies:
dart_flutter_team_lints: ^3.1.0
test: ^1.16.0

dependency_overrides:
build_resolvers:
path: ../build_resolvers

topics:
- build-runner
- codegen
Expand Down
2 changes: 1 addition & 1 deletion build_daemon/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
web_socket_channel: ">=2.0.0 <4.0.0"

dev_dependencies:
analyzer: '>=3.4.0 <7.0.0'
analyzer: '>=3.4.0 <8.0.0'
build_runner: ^2.0.0
# TODO: untangle analyzer dependency
built_value_generator: ^8.1.0
Expand Down
2 changes: 1 addition & 1 deletion build_modules/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: '>=3.5.0 <3.7.0-z'

dependencies:
analyzer: '>=5.1.0 <7.0.0'
analyzer: '>=5.1.0 <8.0.0'
async: ^2.5.0
bazel_worker: ^1.0.0
build: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion build_resolvers/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
sdk: ^3.6.0-228.0.dev

dependencies:
analyzer: ^6.9.0
analyzer: '>=6.9.0 <8.0.0'
async: ^2.5.0
build: ^2.0.0
collection: ^1.17.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Future<String> _generateBuildScript() async {
..writeln('// ignore_for_file: directives_ordering')
..writeln(library.accept(emitter));

return DartFormatter().format(content.toString());
return DartFormatter(languageVersion: DartFormatter.latestLanguageVersion)
kevmoo marked this conversation as resolved.
Show resolved Hide resolved
.format(content.toString());
} on FormatterException {
_log.severe('Generated build script could not be parsed.\n'
'This is likely caused by a misconfigured builder definition.');
Expand Down
12 changes: 10 additions & 2 deletions build_runner/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platforms:
macos:

dependencies:
analyzer: '>=4.4.0 <7.0.0'
analyzer: '>=4.4.0 <8.0.0'
args: ^2.0.0
async: ^2.5.0
build: ">=2.1.0 <2.5.0"
Expand All @@ -24,7 +24,7 @@ dependencies:
code_builder: ^4.2.0
collection: ^1.15.0
crypto: ^3.0.0
dart_style: ^2.0.0
dart_style: '>=2.0.0 <4.0.0'
frontend_server_client: ">=3.0.0 <5.0.0"
glob: ^2.0.0
graphs: ^2.2.0
Expand Down Expand Up @@ -60,8 +60,16 @@ dev_dependencies:
test_process: ^2.0.0

dependency_overrides:
build:
path: ../build
build_modules:
path: ../build_modules
build_resolvers:
path: ../build_resolvers
build_runner_core:
path: ../build_runner_core
build_web_compilers:
path: ../build_web_compilers

topics:
- build-runner
2 changes: 1 addition & 1 deletion build_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
watcher: ^1.0.0

dev_dependencies:
analyzer: '>=5.2.0 <7.0.0'
analyzer: '>=5.2.0 <8.0.0'
collection: ^1.15.0

topics:
Expand Down
2 changes: 1 addition & 1 deletion build_web_compilers/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: '>=3.6.0-165.0.dev <3.7.0-z'

dependencies:
analyzer: '>=5.1.0 <7.0.0'
analyzer: '>=5.1.0 <8.0.0'
archive: ^3.0.0
bazel_worker: ^1.0.0
build: ^2.0.0
Expand Down
Loading