)]}'
{
  "commit": "3e6a4c4abe8714ebb04c0d4834bcc7230f4d4a03",
  "tree": "cf5b7dc0ed2ac2c55a949962d19416bae8553809",
  "parents": [
    "f4f929a48d358acb206a6cbc91dfdee813c45aed"
  ],
  "author": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Fri May 23 17:29:57 2025 +0000"
  },
  "committer": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Fri May 23 11:30:07 2025 -0700"
  },
  "message": "dockerimg: mount Go caches for faster Docker race builds\n\nWhen building sketch binary with race detector in Docker, the system\nwas downloading all modules and rebuilding from scratch every time,\nmaking repeated builds slow and inefficient.\n\nThis adds host Go cache mounting to buildLinuxSketchBinWithDocker by:\n- Getting host GOCACHE and GOMODCACHE directories using \u0027go env\u0027\n- Mounting them as volumes in the Docker container:\n  -v $GOCACHE:/root/.cache/go-build\n  -v $GOMODCACHE:/go/pkg/mod\n\nThe optimization ensures:\n- First race build: Downloads modules (same time as before)\n- Subsequent race builds: Reuses cached modules (much faster)\n- Build artifacts persist between Docker container runs\n\nAdds helper functions getHostGoCacheDir() and getHostGoModCacheDir()\nto retrieve cache paths from the host environment, with proper error\nhandling and path validation.\n\nIncludes unit test to verify cache directory detection works correctly\non all platforms where Go is installed.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: sd279e56e1574e4e1k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "47d144e375a400e5f1f5ed8643adaa5822633dcc",
      "old_mode": 33188,
      "old_path": "dockerimg/dockerimg.go",
      "new_id": "e14955d9165cda9887898945674bdfe7f92a674c",
      "new_mode": 33188,
      "new_path": "dockerimg/dockerimg.go"
    },
    {
      "type": "modify",
      "old_id": "e69d9d7c72dc2d9235b543ae893d959c8e7ec91b",
      "old_mode": 33188,
      "old_path": "dockerimg/dockerimg_test.go",
      "new_id": "b19b6d5fa351090c4d0abd0702e2941ba68fd245",
      "new_mode": 33188,
      "new_path": "dockerimg/dockerimg_test.go"
    }
  ]
}
