)]}'
{
  "commit": "cb4b1e3a8baff44ada0ef33daf0ee3d20631f891",
  "tree": "7db1a0da95e41b370c08137d86610ef3e521280f",
  "parents": [
    "70d85b73404c41b4583ab20081f716993baa01c3"
  ],
  "author": {
    "name": "Philipp Wollermann",
    "email": "philwo@google.com",
    "time": "Fri Mar 23 10:24:37 2018 +0100"
  },
  "committer": {
    "name": "Philipp Wollermann",
    "email": "philwo@google.com",
    "time": "Fri Mar 23 09:31:44 2018 +0000"
  },
  "message": "Use the system default version of Python to run Documentation scripts.\n\nThey work fine with Python 2.7 and Python 3.5 anyway and some systems do not\nhave a \"python2\" binary (e.g. macOS). This will fix the Gerrit CI build on\nBazel\u0027s CI, which is currently failing with:\n\nERROR: /Users/buildkite/builds/buildkite-macpro-7-1/bazel-downstream-projects/gerrit/Documentation/BUILD:94:1: Couldn\u0027t build file Documentation/pg-plugin-endpoints.txt.html_htmlonly_expn: error executing shell command: \u0027.html_htmlonly_expn\u0027 failed (Exit 127)\nenv: python2: No such file or directory\n\nI tested this change like this:\n\n# Build with Python 2 to ensure my local setup is fine.\nbazel build //Documentation/...\n# Works fine.\n\n# Now build with Python 3 instead, to ensure compatibility.\nsed -i \u0027s/python2/python3/g\u0027 Documentation/replace_macros.py \\\n    tools/bzl/license.bzl\nbazel clean\nbazel build //Documentation/...\n# Works fine, too.\n\nThus we can safely change \"python2\" to \"python\" and let the scripts run with\nthe system default version.\n\nChange-Id: I107b76bc71e9b42101d57f94ab7c54c90e7c74cb\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "09e243914e82b571354e5b3bc51ba0088efbd686",
      "old_mode": 33261,
      "old_path": "Documentation/replace_macros.py",
      "new_id": "c76d133936028004708d0d6bfab65adabb30ad7f",
      "new_mode": 33261,
      "new_path": "Documentation/replace_macros.py"
    },
    {
      "type": "modify",
      "old_id": "357817303aee2982c50f8e9c131283914a0e8de2",
      "old_mode": 33188,
      "old_path": "tools/bzl/license.bzl",
      "new_id": "38dfbe5e287a4d30f5e65c7b28abb63748d1e02c",
      "new_mode": 33188,
      "new_path": "tools/bzl/license.bzl"
    }
  ]
}
