)]}'
{
  "commit": "dd41ff012531ffa0d970d6e1594bf23588ccd831",
  "tree": "e8e99bc53621d5415085a2ed83f387a597449a2a",
  "parents": [
    "43337bba0a966d6f1ee148db5bc21b81649afef4"
  ],
  "author": {
    "name": "aldersondrive",
    "email": "alderson@google.com",
    "time": "Tue Feb 04 11:00:27 2020 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Feb 04 11:01:22 2020 -0800"
  },
  "message": "On OpenBSD, search the PATH to find the Bazel executable.\n\nSearching the `PATH` is the only feasible way to find the executable on OpenBSD when `argv[0]` is not an absolute path or a relative path. This change resolves a TODO.\n\nThis change moves a preexisting `Which` function for searching the `PATH` out of `blaze_util_linux.cc` and into `blaze_util_posix.cc`, so that the Linux code and the BSD code can share this function.\n\nIn my testing on OpenBSD 6.6-current, a bootstrap build of Bazel succeeds and the resulting `bazel` binary can find itself on the `PATH`. (One caveat: For the bootstrap build to succeed, I had to manually apply the unrelated change in https://github.com/bazelbuild/bazel/pull/10639, since it\u0027s not merged yet.)\n\nThis change is part of the OpenBSD port in https://github.com/bazelbuild/bazel/issues/10250.\n\n@jmmv FYI.\n\nCloses #10691.\n\nPiperOrigin-RevId: 293183553\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "954c8f0f1bec154d1ed5b31f5466049ef4e62fd0",
      "old_mode": 33188,
      "old_path": "src/main/cpp/blaze_util_bsd.cc",
      "new_id": "14f5456c609a33623d8acb58855b37ffb0063cc0",
      "new_mode": 33188,
      "new_path": "src/main/cpp/blaze_util_bsd.cc"
    },
    {
      "type": "modify",
      "old_id": "9c1050359219124dab0c6d7dfc7fd710d8f113da",
      "old_mode": 33188,
      "old_path": "src/main/cpp/blaze_util_linux.cc",
      "new_id": "ef9a3e1a8768d26f31b1949cbf42c86ede32f8fa",
      "new_mode": 33188,
      "new_path": "src/main/cpp/blaze_util_linux.cc"
    },
    {
      "type": "modify",
      "old_id": "3c6bff20473ce92c41c678cc1971ba6ab11348e5",
      "old_mode": 33188,
      "old_path": "src/main/cpp/blaze_util_platform.h",
      "new_id": "42075f106ba0944776fc219cd27e10b6917eab77",
      "new_mode": 33188,
      "new_path": "src/main/cpp/blaze_util_platform.h"
    },
    {
      "type": "modify",
      "old_id": "70e9c13f0dd417f20d759671ee29de58f0718e8a",
      "old_mode": 33188,
      "old_path": "src/main/cpp/blaze_util_posix.cc",
      "new_id": "25f57b322ee917c8125f963b407f8ad075d47fa9",
      "new_mode": 33188,
      "new_path": "src/main/cpp/blaze_util_posix.cc"
    }
  ]
}
