Skip to content

[material_ui] Declare Flutter SDK dependencies in the pubspec.yaml for tool/gen_defaults - #12623

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
jason-simmons:material_gen_defaults_flutter_dep
Aug 25, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:mainfrom
jason-simmons:material_gen_defaults_flutter_dep

Conversation

@jason-simmons

Copy link
Copy Markdown
Member

This is required for running the Dart analyzer within the tool/gen_defaults package.

…r tool/gen_defaults

This is required for running the Dart analyzer within the tool/gen_defaults package.
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 25, 2026
@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Aug 25, 2026

@elliette elliette left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!!

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a Flutter SDK environment constraint and dependency to the pubspec.yaml file in the gen_defaults tool. The review feedback points out that the specified Flutter SDK version constraint (>=3.44.0) is invalid as it has not been released yet, which will cause pub get to fail, and suggests correcting it to a valid version.


environment:
sdk: ^3.12.0
flutter: ">=3.44.0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Flutter SDK version constraint is set to >=3.44.0. However, Flutter 3.44.0 is not a released version yet (current stable versions are in the 3.2x range). This constraint will cause flutter pub get to fail on all current Flutter SDKs. This is likely a typo for >=3.24.0 or another existing version. Please correct this to a valid version.

  flutter: ">=3.24.0"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flutter: ">=3.44.0" matches the constraint in https://github.com/flutter/packages/blob/main/packages/material_ui/pubspec.yaml

(The latest version in Flutter's stable branch is currently 3.47.1)

@jason-simmons jason-simmons added autosubmit Merge PR when tree becomes green via auto submit App emergency Override tree-status signal (land even with closed tree), combine with the autosubmit label. labels Aug 25, 2026
@flutter-dashboard

Copy link
Copy Markdown

Detected the emergency label.

If you add the autosubmit label, the bot will wait until all presubmits pass but ignore the tree status, allowing fixes for tree breakages while still validating that they don't break any existing presubmits.

The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue".

@auto-submit
auto-submit Bot merged commit 0bbd8e5 into flutter:main Aug 25, 2026
10 of 12 checks passed
@bparrishMines

Copy link
Copy Markdown
Contributor

cc @stuartmorgan-g @elliette @jason-simmons

This is causing failures in post submit with the formatter:

diff --git a/packages/material_ui/tool/gen_defaults/analysis_options.yaml b/packages/material_ui/tool/gen_defaults/analysis_options.yaml
index 1fb98de01a..4d7fbb072b 100644
--- a/packages/material_ui/tool/gen_defaults/analysis_options.yaml
+++ b/packages/material_ui/tool/gen_defaults/analysis_options.yaml
@@ -2,3 +2,12 @@ include: ../../../../analysis_options.yaml
 
 formatter:
   page_width: 100
+analyzer:
+  exclude:
+    - build/**
+    - android/**
+    - ios/**
+    - web/**
+    - windows/**
+    - macos/**
+    - linux/**

I think it may be caused by flutter pub get though.

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

Yes, pub get will do that automigration.

How are we not seeing these things in presubmit?

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

Yes, pub get will do that automigration.

And to be clear, the fix is just to check that change in.

@bparrishMines

Copy link
Copy Markdown
Contributor

I can make the PR.

auto-submit Bot pushed a commit that referenced this pull request Aug 25, 2026
…pub get` on pacakage (#12626)

Fix tool package in `material_ui`.

Post submit fix for #12623

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
danielleon-cmd pushed a commit to victogomez-cs/packages-fork that referenced this pull request Aug 27, 2026
…r tool/gen_defaults (flutter#12623)

This is required for running the Dart analyzer within the tool/gen_defaults package.
danielleon-cmd pushed a commit to victogomez-cs/packages-fork that referenced this pull request Aug 27, 2026
…pub get` on pacakage (flutter#12626)

Fix tool package in `material_ui`.

Post submit fix for flutter#12623

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
bkonyi pushed a commit to bkonyi/flutter that referenced this pull request Aug 27, 2026
…r#191886)

flutter/packages@740f093...bd3cbc1

2026-08-26 [email protected] Roll Flutter from
9a82789 to 15d8908 (37 revisions) (flutter/packages#12619)
2026-08-26 [email protected] [google_maps_flutter] Convert simple
object controllers to Swift (flutter/packages#12618)
2026-08-26 [email protected] [material_ui]
`gen_defaults` should follow new versioning strategy
(flutter/packages#12627)
2026-08-25 [email protected] [material_ui]
Fixes analysis_options migration from calling `flutter pub get` on
pacakage (flutter/packages#12626)
2026-08-25 [email protected] [material_ui] Declare
Flutter SDK dependencies in the pubspec.yaml for tool/gen_defaults
(flutter/packages#12623)
2026-08-25 [email protected] [material_ui]
Set-up `tool/gen_defaults` sub-directory (flutter/packages#12469)
2026-08-25 [email protected] [google_maps_flutter] Convert
top-level classes to Swift in `_sdk*` packages (flutter/packages#12307)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
jagadeesh8682 pushed a commit to jagadeesh8682/packages that referenced this pull request Sep 2, 2026
…r tool/gen_defaults (flutter#12623)

This is required for running the Dart analyzer within the tool/gen_defaults package.
jagadeesh8682 pushed a commit to jagadeesh8682/packages that referenced this pull request Sep 2, 2026
…pub get` on pacakage (flutter#12626)

Fix tool package in `material_ui`.

Post submit fix for flutter#12623

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
victorsanni pushed a commit to victorsanni/packages that referenced this pull request Sep 9, 2026
…pub get` on pacakage (flutter#12626)

Fix tool package in `material_ui`.

Post submit fix for flutter#12623

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD emergency Override tree-status signal (land even with closed tree), combine with the autosubmit label. p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants