)]}'
{
  "commit": "4561c3642329b79a010a0a02f7ecb5dee59a47ac",
  "tree": "e9e01a1fc01b376eeb685bdb518a636edc6af212",
  "parents": [
    "f94f4fc76b4d74543ed9b085bbd75341ef65de22"
  ],
  "author": {
    "name": "Ben Konyi",
    "email": "bkonyi@google.com",
    "time": "Wed Jul 08 14:02:20 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Jul 08 18:02:20 2026 +0000"
  },
  "message": "[stable] [flutter_tools] Fix native assets crash on Linux custom devices (#189088)\n\nThis pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)\nPlease fill in the form below, and a flutter domain expert will evaluate this cherry pick request.\n\n### Issue Link:\n\nhttps://github.com/flutter/flutter/issues/187980\n\n### Impact Description:\n\nWhen native assets are enabled on Linux, building asset bundles (e.g., `flutter build bundle` or running on custom devices without a native CMake build) crashes with a tool exit because `CMakeCache.txt` is missing.\n\n### Changelog Description:\n\n[flutter/187980](https://github.com/flutter/flutter/issues/187980): On Linux, building asset bundles with native assets enabled without a native app build directory crashes due to missing `CMakeCache.txt`.\n\n### Workaround:\n\nNone for custom devices or bundle builds where CMake is not executed.\n\n### Risk:\nWhat is the risk level of this cherry-pick?\n\n### Test Coverage:\nAre you confident that your fix is well-tested by automated tests?\n\n### Validation Steps:\n\n1. Enable native assets on Linux (`flutter config --enable-native-assets`).\n2. Run `flutter build bundle` in a project with a native asset hook.\n3. Verify that `flutter build bundle` succeeds without crashing due to missing `CMakeCache.txt`.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "756f2ed088b1692fa81152459764058a51ad8b75",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/isolated/native_assets/linux/native_assets.dart",
      "new_id": "546889ec41fcae38c7c54fb9a28843ec4fe54dcc",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/isolated/native_assets/linux/native_assets.dart"
    },
    {
      "type": "modify",
      "old_id": "b2f0c4719894a9d820a0b299e174b5545e4a054e",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/isolated/native_assets/targets.dart",
      "new_id": "e4726d0a48fb01b3a7082e6f934aa858a6d72f91",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/isolated/native_assets/targets.dart"
    },
    {
      "type": "modify",
      "old_id": "ea7028f151cbd4f8406e3ab21c0341e307ec1ea3",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart",
      "new_id": "23074d1dc11f51840b2ba2cd354b655c435ce194",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/isolated/linux/native_assets_test.dart"
    },
    {
      "type": "modify",
      "old_id": "37dad8abb516dbbef15b6088addf555869c276cf",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/integration.shard/isolated/native_assets_without_cbuild_assemble_test.dart",
      "new_id": "098b3e811af60db3a92d5df7bb4e6839b9d266ca",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/integration.shard/isolated/native_assets_without_cbuild_assemble_test.dart"
    }
  ]
}
