)]}'
{
  "commit": "620a92aff1cf0862216c63d2e5ec0117ef0cb1a6",
  "tree": "c7b5e9eb19714155c47baae7d249c02ff78eb673",
  "parents": [
    "d568f18e846715d0bd0840cd3dbff678b9c698ce"
  ],
  "author": {
    "name": "Madeline Kalil",
    "email": "mkalil@google.com",
    "time": "Thu Jul 09 13:19:59 2026 -0400"
  },
  "committer": {
    "name": "Madeline Kalil",
    "email": "mkalil@google.com",
    "time": "Fri Jul 10 07:45:04 2026 -0700"
  },
  "message": "go/analysis/passes/modernize: embedlit - skip multi assigns and decls\n\nThe embedlit modernizer introduces a syntax error when\nattempting to combine an embedded field assignment\ninto its initialization if the initialization is\na multi-assignment or multi-declaration. This is because\nthe edits produced assume that there is only one\ncomp lit initialization:\n\n\tt1, t2 :\u003d T1{...}, T2{...}\n\tt1.x \u003d v\n\n\t\u003d\u003e\n\n\tt1, t2 :\u003d T1{, T2{}, x: v}\n\nFor now, don\u0027t modernize when we encounter a multi-assign\nor multi-decl, but leave a TODO because we could handle\nthis case by changing the way we calculate the edits.\n\n(Found this bug while running the embedlit modernizer\nin the ecosystem metrics pipeline, which we recently\nupdated to use the Go1.27rc1)\n\nChange-Id: I78135f02f88746d76561ba14d639878b3a05a312\nReviewed-on: https://go-review.googlesource.com/c/tools/+/798880\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Alan Donovan \u003cadonovan@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d2c71b57aa534dd4493d0f39e1ce4e714036bc95",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/embedlit.go",
      "new_id": "f8b6dfca57cde314972c567160ee62d87f930a58",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/embedlit.go"
    },
    {
      "type": "modify",
      "old_id": "39300a1f4f614341f80cfb16d63ab5cf473aac07",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/testdata/src/embedlit/embedlit_go127.go",
      "new_id": "19a47ee4158b6d4393607f927c51d2dfff0d1f9f",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/src/embedlit/embedlit_go127.go"
    },
    {
      "type": "modify",
      "old_id": "69fe4ab7b237b18c26cfbf2d6f616b057e12a82f",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/testdata/src/embedlit/embedlit_go127.go.golden",
      "new_id": "6d8e43784d6677f0bcf6e71dd38d6ff1fea01e51",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/src/embedlit/embedlit_go127.go.golden"
    }
  ]
}
