)]}'
{
  "commit": "22cf28682ca13a6fcede888ecf537550ae04cfd2",
  "tree": "5b80699f6599996a7abddbfd562f37164cb15c87",
  "parents": [
    "5f91a019b591ce5ab426e7beeefc6900267bbf11"
  ],
  "author": {
    "name": "Hongxiang Jiang",
    "email": "hxjiang@golang.org",
    "time": "Tue Jun 02 19:26:24 2026 -0400"
  },
  "committer": {
    "name": "Hongxiang Jiang",
    "email": "hxjiang@golang.org",
    "time": "Wed Jun 03 13:47:12 2026 -0700"
  },
  "message": "gopls/internal/analysis/fillstruct: respect file go version\n\nDirect reference to embedded fields in struct literals is invalid before\nGo 1.27.\n\nTo prevent generating invalid code, update the fillstruct analyzer to\ncheck the Go version of the file. If the version is less than Go 1.27,\nskip filling promoted fields. This fallback behavior causes gopls to\ninstead suggest filling the direct parent struct, generating valid Go\n1.26 nested struct literals.\n\nAlso, add build tags and version-specific marker tests for Go 1.26 and\nGo 1.27.\n\nFor golang/go#78553\n\nChange-Id: I3f915719ec60c796d5f77be72408e1786d3bf680\nReviewed-on: https://go-review.googlesource.com/c/tools/+/786422\nReviewed-by: Alan Donovan \u003cadonovan@google.com\u003e\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bdb7b8877d154ac223e4286d69dbb657d5f9f81",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/fillstruct/fillstruct.go",
      "new_id": "bbbd0f79bca742758be3cffed0e50365cf568a25",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/fillstruct/fillstruct.go"
    },
    {
      "type": "modify",
      "old_id": "d12a79391b10eca20496fde03b682d2e09cbaeef",
      "old_mode": 33188,
      "old_path": "gopls/internal/analysis/fillstruct/testdata/src/issue78553/issue78553.go",
      "new_id": "d1eb5e481d370276c75c79cbc7533ed624e78b45",
      "new_mode": 33188,
      "new_path": "gopls/internal/analysis/fillstruct/testdata/src/issue78553/issue78553.go"
    },
    {
      "type": "modify",
      "old_id": "cf333b04133babe7a5d232820b876fe99fb4ebda",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/fill_struct_go126.txt",
      "new_id": "06b87509757cd177df393300942d3a4a2c4f91aa",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/fill_struct_go126.txt"
    },
    {
      "type": "rename",
      "old_id": "55134722d2b5c0946869f1a72b2c45929f8bae12",
      "old_mode": 33188,
      "old_path": "gopls/internal/test/marker/testdata/codeaction/fill_struct_issue78553.txt",
      "new_id": "3f3aea185a06b1d9a06471f7959635b4c99a3408",
      "new_mode": 33188,
      "new_path": "gopls/internal/test/marker/testdata/codeaction/fill_struct_go127.txt",
      "score": 85
    }
  ]
}
