)]}'
{
  "commit": "6d0487b7c763ff17a7df4a893253cd486a667379",
  "tree": "7bc45c40f49541e0986ee611bb90f29f6d546dba",
  "parents": [
    "9a0e53e6d1542cf11e6213e7121cfc19a363ec34"
  ],
  "author": {
    "name": "Mark Elliot",
    "email": "123787712+mark-thm@users.noreply.github.com",
    "time": "Mon Apr 15 21:07:55 2024 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Apr 15 21:07:55 2024 -0400"
  },
  "message": "Add convenience target for running in the current working directory (#29)\n\nIt\u0027s common for users of multitool to want to run tools in the current working directory. In #26, @alexeagle documented a technique we\u0027ve used for a while with creating a script and symlinking to it. Our internal copy of this script is a bit more complicated to help avoid expensive calls to Bazel that simple `bazel run` calls don\u0027t really need. More refinements have been proposed in #27. All of these things are fundamentally workarounds for https://github.com/bazelbuild/bazel/issues/3325.\r\n\r\nTo help simplify things, this PR adds a convenience wrapper that captures the execpath, switches to $BUILD_WORKING_DIRECTORY, and then runs the desired tool. The resulting shell script gets to use a very simple `bazel run`, should be compatible across any slew of Bazel options, and cache as well as any typical run target.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "755f3bbc5cbe3ed764d9768505e99190995995ed",
      "old_mode": 33188,
      "old_path": "examples/module/BUILD.bazel",
      "new_id": "9e6b82064d684d71a3724d40fc6419e16938ac95",
      "new_mode": 33188,
      "new_path": "examples/module/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "38a0bfd5ec658bd666c338028c22b3970d667ac1",
      "old_mode": 33188,
      "old_path": "examples/workspace/BUILD.bazel",
      "new_id": "9e6b82064d684d71a3724d40fc6419e16938ac95",
      "new_mode": 33188,
      "new_path": "examples/workspace/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9ccea807b10d5c91c389564455563837f793684e",
      "new_mode": 33188,
      "new_path": "multitool/cwd.bzl"
    },
    {
      "type": "modify",
      "old_id": "13fa4e30bc8c4491eea02fb9785286b40a0c44c4",
      "old_mode": 33188,
      "old_path": "multitool/private/BUILD.bazel",
      "new_id": "b4859c1db517c777a668301e14f6e50dd894cd0b",
      "new_mode": 33188,
      "new_path": "multitool/private/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "97cc681ff1cb64d18e8233707cd34a8bfbd096a5",
      "new_mode": 33188,
      "new_path": "multitool/private/cwd.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2c42aa9d8ccf82ad6d8ebbddd719ddd6f5c10971",
      "new_mode": 33188,
      "new_path": "multitool/private/cwd.template.sh"
    },
    {
      "type": "modify",
      "old_id": "112b679192d69e0d0eb26ab13da33bd4118d6781",
      "old_mode": 33188,
      "old_path": "multitool/private/hub_repo_tool_template/BUILD.bazel.template",
      "new_id": "ad27ef23ea8652c756e437e91108d4b501231f1b",
      "new_mode": 33188,
      "new_path": "multitool/private/hub_repo_tool_template/BUILD.bazel.template"
    },
    {
      "type": "modify",
      "old_id": "c8df5670fca8e60137b5d0d537bc106d9401518a",
      "old_mode": 33188,
      "old_path": "readme.md",
      "new_id": "19d6849b6fe3d9a5e7a16026045d1837797fd4c1",
      "new_mode": 33188,
      "new_path": "readme.md"
    }
  ]
}
