)]}'
{
  "commit": "40c2c73dbbe8bb669ff2ee54c0aca1bfcdb2a44b",
  "tree": "642873ffe847884236221da3dec6991f3375b1c1",
  "parents": [
    "baca6fbbd606df4607e3caf213e65db8fd37ac80"
  ],
  "author": {
    "name": "Robert Findley",
    "email": "rfindley@golang.org",
    "time": "Thu Mar 12 19:01:04 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Mar 12 16:01:04 2026 -0700"
  },
  "message": "bzlmod: allow non-default go.work file names (#2303)\n\nThe go command accepts any file as a workspace file via the GOWORK\nenvironment variable, and writes checksums to a sibling file with a .sum\nsuffix (e.g. GOWORK\u003dgo.bazel.work produces go.bazel.work.sum).\n\ngo_deps.from_file(go_work \u003d ...) currently rejects any name other than\ngo.work, and hardcodes go.work.sum as the sum file name. This is\nstricter than the go command itself. Notably, go_work_from_label already\naccepts any name; only the sum-file path checks.\n\nRemove the name check and derive the sum file name from the work file\nname.\n\nA non-default name is useful when a repository wants a Bazel-only\nworkspace that the go toolchain won\u0027t auto-discover (the toolchain walks\nup directories looking specifically for go.work), so native go builds\nremain unaffected by the Bazel workspace configuration.\n\n**What type of PR is this?**\n\n Bug fix\n\n**What package or component does this PR mostly affect?**\n\ngo_repository\n\n**What does this PR do? Why is it needed?**\n\n**Which issues(s) does this PR fix?**\n\nFixes #2302\n\n**Other notes for review**",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f39bda538113b4dee0a083d44ab02909db388b46",
      "old_mode": 33188,
      "old_path": ".gitignore",
      "new_id": "3ab8e22c382c26f66ae261f3407fec5fc0638b7b",
      "new_mode": 33188,
      "new_path": ".gitignore"
    },
    {
      "type": "modify",
      "old_id": "2409a06316f44325642f6911fa50556e541104b3",
      "old_mode": 33188,
      "old_path": "internal/bzlmod/go_mod.bzl",
      "new_id": "fa0b2bf366a228f5c16420f0020af056c3174b34",
      "new_mode": 33188,
      "new_path": "internal/bzlmod/go_mod.bzl"
    },
    {
      "type": "modify",
      "old_id": "cfc40e45eb5a5d10c0b629de5ff31e20de9b0bb7",
      "old_mode": 33188,
      "old_path": "tests/bcr/go_work/MODULE.bazel",
      "new_id": "6a4a89e31ff08c80fda625ccb51d623f5b237282",
      "new_mode": 33188,
      "new_path": "tests/bcr/go_work/MODULE.bazel"
    },
    {
      "type": "rename",
      "old_id": "3152bec7d1d8fdbcabf2f84312480395140e504d",
      "old_mode": 33188,
      "old_path": "tests/bcr/go_work/go.work",
      "new_id": "3152bec7d1d8fdbcabf2f84312480395140e504d",
      "new_mode": 33188,
      "new_path": "tests/bcr/go_work/workspace.go.work",
      "score": 100
    }
  ]
}
