)]}'
{
  "commit": "c8fca5c0ab42b21aeca74c98084b1aeb62e9ea9d",
  "tree": "1310b8e6dd5dcd3ffa00b43d19427cf578545c91",
  "parents": [
    "6583a73fdc7089f42e6d49007cd3dc7861fb205f"
  ],
  "author": {
    "name": "Jay Conrod",
    "email": "jay@engflow.com",
    "time": "Thu Aug 22 01:23:32 2024 -0700"
  },
  "committer": {
    "name": "tfrench",
    "email": "tfrench@uber.com",
    "time": "Fri Aug 30 16:37:53 2024 +0000"
  },
  "message": "builder: work around change in filepath.EvalSymlinks behavior (#4050)\n\n**What type of PR is this?**\r\n\r\n\u003e Bug fix\r\n\r\n**What does this PR do? Why is it needed?**\r\n\r\nfilepath.EvalSymlinks works differently on Windows in Go 1.23.0: mount\r\npoints and reparse points are no longer treated as symbolic links by\r\nos.Stat. Bazel uses junctions (implemented as reparse points) for\r\ninputs, so this means EvalSymlinks can fail with some kinds of inputs\r\nwhere it didn\u0027t before.\r\n\r\nreplicateTree calls EvalSymlinks before constructing an input tree for\r\n`GoStdlib`. This seems to be necessary in some cases, though I\u0027m not\r\naltogether sure why. EvalSymlinks fails due to the new behavior though.\r\n\r\nThis change sets `GODEBUG\u003dwinsymlink\u003d0` when invoking the builder binary\r\nto revert to the old behavior. This should not affect the behavior of\r\nuser code compiled using the builder. This may not be a permanent\r\nsolution, but it should work at least through Go 1.25.\r\n\r\n**Which issues(s) does this PR fix?**\r\n\r\nFixes #4049\r\n\r\n**Other notes for review**\r\n\r\nNo test, but verified locally. Simply running `GoStdlib` with Go 1.23.0\r\nwill cover this. rules_go currently builds with Go 1.21.8 (no longer a\r\nversion supported by Google!).",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "247c4a3443f5c2605e37d8ebd0a88ac3d66bbf25",
      "old_mode": 33188,
      "old_path": "go/private/context.bzl",
      "new_id": "1eb69a5ea65d913e2c8192816b78ebd97353fd76",
      "new_mode": 33188,
      "new_path": "go/private/context.bzl"
    }
  ]
}
