)]}'
{
  "commit": "6e5f4255c4dbfe627d9696cf1691f5fe60ceec7d",
  "tree": "bd6b5b599edf7d14c55c2acf3a4ea978beb9301d",
  "parents": [
    "e5f7ae13a79f624b7414958de3f8c64693adfe8c"
  ],
  "author": {
    "name": "Peter Weinberger",
    "email": "pjw@google.com",
    "time": "Thu Feb 09 14:03:47 2023 -0500"
  },
  "committer": {
    "name": "Peter Weinberger",
    "email": "pjw@google.com",
    "time": "Thu Mar 16 15:43:32 2023 +0000"
  },
  "message": "gopls/mod: show hint for discordant module versions\n\nSometimes a go.mod file specifies a version of a module that\nis different from what Go ends up using. This CL adds\ninlay hints to the go.mod file when that happens.\n\nIt can happen in a require or replace directive, when some other\nmodule needs a different version.\n\nAccepting the inlay hint will change the specified version to\nthe one that is used.\n\nThere is a new test.\n\nAnd here is a real-life example:\nCreate a directory and initialize a go.work file with\ngo work init ./delve ./tools\ngit clone https://github.com/go-delve/delve.git\n(cd delve; git checkout 4303ae45a8e2996b30d2318f239677a771aef9c1)\ngit clone https://go.googlesource.com/tools\n(cd tools; git checkout 8111118043894a9c0eab886fc370ca123dcf48f1)\nThen the delve go.mod file has a hint in the \u0027require\u0027 section.\n\nFixes: golang/go#57026\n\nChange-Id: Ifb131ed852efad3e2f29524a529f8b23db0d9ee9\nReviewed-on: https://go-review.googlesource.com/c/tools/+/466976\nTryBot-Result: Gopher Robot \u003cgobot@golang.org\u003e\nRun-TryBot: Peter Weinberger \u003cpjw@google.com\u003e\ngopls-CI: kokoro \u003cnoreply+kokoro@google.com\u003e\nReviewed-by: Robert Findley \u003crfindley@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6aceecb0d332955d42196230ba8aab50cf40fac1",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/inlay_hint.go",
      "new_id": "7efe98bdc6695db235d7f301db65380b44274ee1",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/inlay_hint.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e494cc790f11e858d7ca387ab113b62249dae9c8",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/mod/inlayhint.go"
    },
    {
      "type": "modify",
      "old_id": "e8846953258fa57837c7da83cfe73c2c0242cd66",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/source/view.go",
      "new_id": "92639d2fe38d834cb2c8efa0418ca8108d208656",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/source/view.go"
    },
    {
      "type": "modify",
      "old_id": "483118dd3d48494240a69b2221d4487f2b109de7",
      "old_mode": 33188,
      "old_path": "gopls/internal/regtest/modfile/modfile_test.go",
      "new_id": "268f109053c0ab2406ffac76afa22eba9fdf12f8",
      "new_mode": 33188,
      "new_path": "gopls/internal/regtest/modfile/modfile_test.go"
    }
  ]
}
