)]}'
{
  "commit": "576a1856caef749fef9d6fce3e6da084316820d8",
  "tree": "9010f482972e72ac9496ea34f3a931bbcc3367c2",
  "parents": [
    "7c00ecaad9879496c8e7878e937cc767975212dc"
  ],
  "author": {
    "name": "Hana Kim",
    "email": "hyangah@gmail.com",
    "time": "Sat Sep 12 15:48:28 2026 +0000"
  },
  "committer": {
    "name": "Hyang-Ah Hana Kim",
    "email": "hyangah@gmail.com",
    "time": "Tue Sep 22 14:14:47 2026 -0700"
  },
  "message": "Revert \"cmd/internal/doc: allow reading packages from module cache\"\n\nThis reverts CL 815900 (commit b687f4531903f3d3f9f772535500ac084d4dde60).\n\nReason for revert: it broke `go doc -http` and `go doc -http\n\u003cstdlib_package\u003e`\n\npkgsite.BuildServer sets Paths to [\".\"] only when len(Paths) \u003d\u003d 0 \u0026\u0026\n!UseCache \u0026\u0026 Proxy \u003d\u003d nil. The doc command sends no Paths of its own,\nso UseCache cancelled that default. No local getter was built, which\nmeans packages in the local workspace don\u0027t load either.\n\nUseCache also put a module cache getter ahead of the stdlib getter.\nSince stdlib packages are not likely in the module cache, and even when\nthey do, they are under a specially named module, the module cache\ngetter faces module.EscapePath(\u003cpackage\u003e) failure and that results\nin HTTP 500. `go doc -http errors` or `go doc -http` outside a module\nthat opens /std fails.\n\nThe reverted CL did not achieve what it set out to do either. The go\ncommand drops the version when it builds the URL for the documentation\nserver, so \"go doc -http pkg@v1.4.0\" opens /pkg and the server shows the\nnewest version in the cache, not the intended version. Fixing that\nneeds a change in cmd/go.\n\nFor golang/go#78459\n\nChange-Id: I122ddf08dbd1f50b46397c97edc49e086a6a6964\nReviewed-on: https://go-review.googlesource.com/c/pkgsite/+/831604\nReviewed-by: Sean Liao \u003csean@liao.dev\u003e\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nkokoro-CI: kokoro \u003cnoreply+kokoro@google.com\u003e\nReviewed-by: Jonathan Amsterdam \u003cjba@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cdd635081991f2bafa3ea290bedc186b9ba4ee50",
      "old_mode": 33188,
      "old_path": "cmd/internal/doc/main.go",
      "new_id": "a361d141759c4b0ada5874c82c3ba250c6326962",
      "new_mode": 33188,
      "new_path": "cmd/internal/doc/main.go"
    }
  ]
}
