From 99b69feacaa31cfa7a45c3446bda13497ed1c9fa Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 21 Jul 2025 10:11:59 -0700 Subject: [PATCH] Upgrade flutter_lints in project template pubspec.yaml files (#172400) The version of flutter_lints used by newly created projects should match the version used by flutter_tools. This ensures that "pub get --offline" will work on a project that was generated by "flutter create". Also restore the Mac tool_tests_commands that were temporarily disabled in https://github.com/flutter/flutter/pull/172388 Fixes https://github.com/flutter/flutter/issues/172375 --- .ci.yaml | 2 -- packages/flutter_tools/templates/app/pubspec.yaml.tmpl | 4 ++-- .../flutter_tools/templates/module/common/pubspec.yaml.tmpl | 2 +- packages/flutter_tools/templates/package/pubspec.yaml.tmpl | 2 +- .../flutter_tools/templates/package_ffi/pubspec.yaml.tmpl | 2 +- .../flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.ci.yaml b/.ci.yaml index 7e0b6f793dd..7ea42ba2ee1 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -4668,7 +4668,6 @@ targets: - DEPS - name: Mac_x64 tool_tests_commands - bringup: true # https://github.com/flutter/flutter/issues/172375 recipe: flutter/flutter_drone timeout: 60 properties: @@ -4684,7 +4683,6 @@ targets: ["framework", "hostonly", "shard", "mac"] - name: Mac_arm64 tool_tests_commands - bringup: true # https://github.com/flutter/flutter/issues/172375 recipe: flutter/flutter_drone timeout: 60 properties: diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index 78f4eca2028..1c0feee3007 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 flutter: uses-material-design: true @@ -80,7 +80,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl index da4efcf60ca..18b8dea1d1a 100644 --- a/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/module/common/pubspec.yaml.tmpl @@ -31,7 +31,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl index 5a6174c7995..cec5640e8fa 100644 --- a/packages/flutter_tools/templates/package/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package/pubspec.yaml.tmpl @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl b/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl index aebb3da0b80..632d95e421d 100644 --- a/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/package_ffi/pubspec.yaml.tmpl @@ -14,5 +14,5 @@ dependencies: dev_dependencies: ffi: ^2.1.3 ffigen: ^13.0.0 - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 test: ^1.25.8 diff --git a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl index 3fc81ef83c3..182a8964269 100644 --- a/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/plugin_shared/pubspec.yaml.tmpl @@ -24,7 +24,7 @@ dev_dependencies: {{/withFfi}} flutter_test: sdk: flutter - flutter_lints: ^5.0.0 + flutter_lints: ^6.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec