)]}'
{
  "commit": "7bf46c13dbb1556df1ca58cdd632b717670a3280",
  "tree": "fbce08c6caef3888afc45dfc71812e0601b73fbd",
  "parents": [
    "98940c33e64548d13314a372bdc0103732407dc3"
  ],
  "author": {
    "name": "Dhiraj Goel",
    "email": "dhiraj.goel@gmail.com",
    "time": "Thu Jul 03 12:07:18 2025 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Jul 03 08:37:18 2025 +0200"
  },
  "message": "Pass large ldflags to cgo via response file instead of env variable. (#4386)\n\n**What type of PR is this?**\n\nBug fix\n\n**What does this PR do? Why is it needed?**\n\nPass ldflags to cgo tool via a response file instead of `CGO_LDFLAGS`\nenv variable for go 1.23+. This avoids the \"argument list too long\"\nerror, which can happen if `CGO_LDFLAGS` is so large that it exceeds the\nsystem limits.\n\nSupport to accept ldflags via file was added to `go` more than a year\nago. References:\n- https://go-review.googlesource.com/c/go/+/584655\n- Discussion: https://github.com/golang/go/issues/66456\n\n**Which issues(s) does this PR fix?**\n\nFixes #2654\n\n---------\n\nCo-authored-by: Dhiraj Goel \u003cdhirajgoel@intrinsic.ai\u003e\nCo-authored-by: Jay Conrod \u003cjay@engflow.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3a22714b7441feb7c04a476b97dafb1e5fbea37d",
      "old_mode": 33188,
      "old_path": "go/tools/builders/cgo2.go",
      "new_id": "0294ec4c5834ef0675a1074f578b937f2f08affa",
      "new_mode": 33188,
      "new_path": "go/tools/builders/cgo2.go"
    },
    {
      "type": "modify",
      "old_id": "670d13a70d390a7897c5fa48f3250c50b7acd43a",
      "old_mode": 33188,
      "old_path": "tests/core/cgo/BUILD.bazel",
      "new_id": "3d69d736233f8b733d40482d07ab896324eec02c",
      "new_mode": 33188,
      "new_path": "tests/core/cgo/BUILD.bazel"
    }
  ]
}
