)]}'
{
  "commit": "cda12e640b67823ca397ea344578e359ccf6aa3c",
  "tree": "ed98af4de4d466db6399f22755db585a4b240db1",
  "parents": [
    "f1e2a8c0f6e5facf80725bc1b5da59cec6d81b6e"
  ],
  "author": {
    "name": "Ishaq Hassan",
    "email": "ishaquehassan@gmail.com",
    "time": "Wed Nov 25 00:12:34 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 25 00:12:34 2026 +0000"
  },
  "message": "Print the Intel Mac deprecation warning on every command (#194071)\n\nThe Intel Mac deprecation warning added in #188835 is gated on\n`PersistentToolState.shouldShowIntelMacWarning` in\n`FlutterCommand.verifyThenRunCommand`, and the first command that prints\nit sets that flag to false in the tool\u0027s persistent state. So each user\nsees the warning once and then never again, which is easy to miss for a\ndeprecation that is still coming.\n\nThis removes the gate, so the warning is printed on every command on an\nIntel (`darwin_x64`) host. The message and the host check are unchanged,\nso Apple Silicon hosts still print nothing.\n\nPrinting it every time also means it would trip the `fatal-warnings`\nflag on every `build`, `run` and `test` on an Intel host instead of only\nthe first one. `runFlutterTest` in `dev/bots/utils.dart` passes that\nflag by default and the `Mac_x64` builders still run on beta and stable,\nso the warning is now printed with `fatal: false`, same as the\n`FLUTTER_STORAGE_BASE_URL` warning in `cache.dart`. It\u0027s about the host\nmachine rather than the project, so it shouldn\u0027t fail a command by\nitself.\n\nWith the gate gone, `shouldShowIntelMacWarning` and its\n`displayed-intel-warning-message` key in `PersistentToolState` have no\nreaders or writers left, and neither do the private\n`_persistentToolState` getter and the `persistent_tool_state.dart`\nimport in `flutter_command.dart`, so they\u0027re removed instead of being\nkept around as dead state. `_DefaultPersistentToolState` is the only\nimplementation of the interface. A `displayed-intel-warning-message`\nentry that is already in someone\u0027s tool state file is simply never read\nagain.\n\nThe existing `prints Intel Mac warning on macOS X64 once` test already\nran the command twice and checked that the second run stayed quiet. It\u0027s\nnow `prints Intel Mac warning on macOS X64 on every command` and checks\nthat the warning shows up twice. The new `Intel Mac warning on macOS X64\nis not fatal` test checks that the warning doesn\u0027t set\n`hadWarningOutput`, which is what `checkForFatalLogs` reads. `does not\nprint Intel Mac warning on macOS ARM64` is unchanged. Locally\n`flutter_command_test.dart` (92/92) and\n`persistent_tool_state_test.dart` (2/2) pass, and both Intel tests fail\nwith the two `lib/` files reverted.\n\nFixes #193729\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant in-code documentation (doc comments with\n`///`).\n- [x] If this PR introduces a new feature or capability, I created and\nlinked a website documentation issue or PR in [flutter/website] (or\nverified none is needed).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/CONTRIBUTING.ai.md\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[flutter/website]: https://github.com/flutter/website\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md\n\n---------\n\nCo-authored-by: Chris Bracken \u003cchris@bracken.jp\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d32b893d254262001567a138dbd0246a76681334",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/base/logger.dart",
      "new_id": "07f276d07716123837f2199f7acb4e8c7f7637e3",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/base/logger.dart"
    },
    {
      "type": "modify",
      "old_id": "9c9e1f5c6cdaf2fa24a20d986f5031ec38df834a",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/persistent_tool_state.dart",
      "new_id": "3de6bdb2e93fb0c2108a4a7ee06eda6f902d5d83",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/persistent_tool_state.dart"
    },
    {
      "type": "modify",
      "old_id": "2f7b237f65cb28a85b71fccdb5c44ff0d03fea7d",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/runner/flutter_command.dart",
      "new_id": "7660999dc77973a8dfdf2a7549ee6c27c04a4f9f",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/runner/flutter_command.dart"
    },
    {
      "type": "modify",
      "old_id": "16b58f99ab6e098eb2006e7a3557eedd47a0156b",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/base/logger_test.dart",
      "new_id": "0bcd4bb7e13bd0ced41e75dcf10ddfeb37e4c35c",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/base/logger_test.dart"
    },
    {
      "type": "modify",
      "old_id": "7917df72718ca5e2a009634ff5ad3dcd44e6fcfb",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart",
      "new_id": "2a0992000c126ea0f03185729998e463762bfbde",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart"
    }
  ]
}
