)]}'
{
  "commit": "d0768c9130a2bc3294d199bfcc296541e16d4a10",
  "tree": "87299f774c2d473d40b14e6fd1c633b5189b374c",
  "parents": [
    "6397a11608adffeb57d160dcd4ec22c9d9d4c4c9"
  ],
  "author": {
    "name": "Shoshin Nikita",
    "email": "shoshin_nikita@fastmail.com",
    "time": "Tue Apr 27 18:57:43 2021 +0000"
  },
  "committer": {
    "name": "Rebecca Stambler",
    "email": "rstambler@golang.org",
    "time": "Tue Apr 27 19:53:45 2021 +0000"
  },
  "message": "internal/lsp/source/completion: suggest only valid package names\n\nBefore this change directory names were used \"as is\" for package completion.\nIt could lead to invalid suggestions (for example, \u0027package 1abc\u0027 or package \u0027ab-cd\u0027).\n\nThis change adds a check whether a directory name can be used in a package path.\nIf the directory name is invalid, only \u0027package main\u0027 will be suggested.\nOtherwise, the directory name will be normalized and will be used as a package name.\n\nNote: normalized directory names contain only lower case letters and digits.\n\nFixes golang/go#44680\n\nChange-Id: I4b710f90d1723c512e29dc3c248a1e681f1cd37f\nGitHub-Last-Rev: 8ae69f1c6fdf80831e5773bdb3507a8d51a4a0cf\nGitHub-Pull-Request: golang/tools#310\nReviewed-on: https://go-review.googlesource.com/c/tools/+/313092\nReviewed-by: Rebecca Stambler \u003crstambler@golang.org\u003e\nTrust: Rebecca Stambler \u003crstambler@golang.org\u003e\nTrust: Peter Weinberger \u003cpjw@google.com\u003e\nRun-TryBot: Rebecca Stambler \u003crstambler@golang.org\u003e\ngopls-CI: kokoro \u003cnoreply+kokoro@google.com\u003e\nTryBot-Result: Go Bot \u003cgobot@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "798409506ab0382ad5662a07e3d06193f2548f99",
      "old_mode": 33188,
      "old_path": "gopls/internal/regtest/completion/completion_test.go",
      "new_id": "a88e861fece3c4c34f5bd60d52fe0b66fd37aa19",
      "new_mode": 33188,
      "new_path": "gopls/internal/regtest/completion/completion_test.go"
    },
    {
      "type": "modify",
      "old_id": "483223a84295ac2e20659f1fb9209297c6097a0c",
      "old_mode": 33188,
      "old_path": "internal/lsp/source/completion/package.go",
      "new_id": "aea414eec7f44c2ff735b7c3ceec403fd4ae5535",
      "new_mode": 33188,
      "new_path": "internal/lsp/source/completion/package.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6436984fdc91360ff2889f509b149de644750079",
      "new_mode": 33188,
      "new_path": "internal/lsp/source/completion/package_test.go"
    }
  ]
}
