)]}'
{
  "commit": "4b9a5fd414e6f0cfb7d0b0c2c711f330a293a997",
  "tree": "1bc1bbff870b3b47f00592ff2f1ae7b62ba53906",
  "parents": [
    "784924be0c22085beed24b7fa91a39e52d682c33"
  ],
  "author": {
    "name": "Saleh",
    "email": "root@lr0.org",
    "time": "Mon Jul 06 18:59:52 2026 +0000"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Mon Jul 06 13:23:10 2026 -0700"
  },
  "message": "go/analysis/passes/modernize: add importcomment analyzer\n\nThe new analyzer removes canonical import path comments, such as\n\n\tpackage foo // import \"example.com/foo\"\n\nThe go command enforced these comments in GOPATH mode via \"go get\", but\nignores them once a package belongs to a module, so they are obsolete in\nmodule-based projects. The fix deletes the comment.\n\nThe analyzer only runs when pass.Module is set, matching the agreed\nbehavior of removing the comment when a go.mod is present without\ninspecting the import path.\n\nFixes golang/go#80049\n\nChange-Id: I0ad4eb113496a2fba03eb1052e615af3f804a347\nGitHub-Last-Rev: dbfa397f47d50fb487e38cacbe6c78da684b26ea\nGitHub-Pull-Request: golang/tools#655\nReviewed-on: https://go-review.googlesource.com/c/tools/+/796860\nAuto-Submit: Alan Donovan \u003cadonovan@google.com\u003e\nReviewed-by: Alan Donovan \u003cadonovan@google.com\u003e\nReviewed-by: Madeline Kalil \u003cmkalil@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": "260dd50908c2e711e5ed2809cad6e3f0c5f3c712",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/doc.go",
      "new_id": "c5545c0cc2afec0d43f217125ed7c2777d7ed90c",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/doc.go"
    },
    {
      "type": "modify",
      "old_id": "0823331ae728b32970115562f4338d9eb4b84cf1",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/export_test.go",
      "new_id": "0401cf0351acd34a02fbbff7ec17d261e324bb1c",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/export_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "15387835eed967925d3da69c6f0e91c5301f3037",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/importcomment.go"
    },
    {
      "type": "modify",
      "old_id": "d7dfe5582a2767806dcc502d497a809607e5c626",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/modernize.go",
      "new_id": "23dd8ab5074aa8dec735206616fd4b6c214e40ad",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/modernize.go"
    },
    {
      "type": "modify",
      "old_id": "bc8ecfb66501285b32a07af38e2da98f0468af3d",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/modernize/modernize_test.go",
      "new_id": "bb2f7ac6ed216e4cd5e86292f4ea76e6d6884972",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/modernize_test.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "654039daa25d548f86e232c2d4568fd683a6cd5d",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/block.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "dea04ac60da2c185d37d2acac18284177edae699",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/block.go.golden"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "32f9f97e9691651252b9ab4d9f9a11ffdeba140d",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/go.mod"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b92c8f89d1aee5265f1ae5d0b1d72bfa900fb81c",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/importcomment.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "029a68018da6f6a40b739e58fd8d3101ebff8caa",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/importcomment.go.golden"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "26c50102e072eebe78b1a576e28b5ddcc0871466",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/modernize/testdata/importcommentmod/other.go"
    },
    {
      "type": "modify",
      "old_id": "10f829caaaa44969a4778f5cb6ec1cdaab359507",
      "old_mode": 33188,
      "old_path": "gopls/doc/analyzers.md",
      "new_id": "70d2b917ad083e7c57fde021417d2c31fcaec2de",
      "new_mode": 33188,
      "new_path": "gopls/doc/analyzers.md"
    },
    {
      "type": "modify",
      "old_id": "b9cf154ccbfa638b4f7fb1dd5fdb37285b4f3899",
      "old_mode": 33188,
      "old_path": "gopls/internal/doc/api.json",
      "new_id": "24efa519e241d1d035335e37f32eeee981a96d3c",
      "new_mode": 33188,
      "new_path": "gopls/internal/doc/api.json"
    }
  ]
}
