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
4 changes: 4 additions & 0 deletions build/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
8 changes: 4 additions & 4 deletions build_runner/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ dev_dependencies:
test_process: ^2.0.0

dependency_overrides:
build_runner_core:
path: ../build_runner_core
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
build_modules:
path: ../build_modules

topics:
- build-runner
Loading