)]}'
{
  "commit": "b15e15fb95d584df80339a5f3bdfd253fcdff2dc",
  "tree": "653efb34c864135c3b192449c7bfd282e48153ec",
  "parents": [
    "44d41ee992bd412bd9e4f8663e2e090894232be9"
  ],
  "author": {
    "name": "Philipp Schrader",
    "email": "philipp.schrader@gmail.com",
    "time": "Wed Oct 05 19:41:36 2022 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 05 16:41:36 2022 -0700"
  },
  "message": "Allow requirements_in to be generated (#829)\n\n* Allow requirements_in to be generated\r\n\r\nWe generate the `requirements_in` file from various input files\r\nroughly like so:\r\n\r\n    genrule(\r\n        name \u003d \"generate_3.7_x86_requirements\",\r\n        srcs \u003d [\r\n            \"requirements_base.in.txt\",\r\n            \"requirements_extra_37.in.txt\",\r\n        ],\r\n        outs \u003d [\"requirements_3.7_x86.txt\"],\r\n        cmd \u003d \"cat $(SRCS) \u003e $(OUTS)\",\r\n    )\r\n\r\n    compile_pip_requirements(\r\n        name \u003d \"compile_requirements_3.7_x86\",\r\n        requirements_in \u003d \":requirements_3.7_x86.txt\",\r\n        requirements_txt \u003d \"requirements_3.7_x86.lock.txt\",\r\n    )\r\n\r\nThe current code errors out with a message like this:\r\n\r\n    Updating common/python/requirements_3.7_x86.lock.txt\r\n    Usage: pip_compile.py [OPTIONS] [SRC_FILES]...\r\n    Try \u0027pip_compile.py -h\u0027 for help.\r\n\r\n    Error: Invalid value for \u0027[SRC_FILES]...\u0027: Path \u0027common/python/requirements_3.7_x86.txt\u0027 does not exist.\r\n\r\nThis patch here fixes the issue by resolving the `requirements_in`\r\npath before the tool `cd`s into the workspace directory.\r\n\r\n* Make tests pass\r\n\r\n* Run black\r\n\r\n* Fix some runtime problems\r\n\r\nCo-authored-by: Thulio Ferraz Assis \u003c3149049+f0rmiga@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "653f75ce2b93a4e7a6f2edad110e064ab850ec7a",
      "old_mode": 33188,
      "old_path": "examples/pip_parse/BUILD",
      "new_id": "1b6ba55f5e3d6a04b92ce842f5c64417f44115fd",
      "new_mode": 33188,
      "new_path": "examples/pip_parse/BUILD"
    },
    {
      "type": "rename",
      "old_id": "ec2102fddaccb1ef43c9a2309522a8fac144c3ab",
      "old_mode": 33188,
      "old_path": "examples/pip_parse/requirements.in",
      "new_id": "ec2102fddaccb1ef43c9a2309522a8fac144c3ab",
      "new_mode": 33188,
      "new_path": "examples/pip_parse/requirements.in.template",
      "score": 100
    },
    {
      "type": "modify",
      "old_id": "9258c17ffdd22b3560e11aa8a75050a74b11c333",
      "old_mode": 33188,
      "old_path": "python/pip_install/pip_compile.py",
      "new_id": "c9bcf32115fb89c0a1c54432f1a2dc28c7dbf7c9",
      "new_mode": 33188,
      "new_path": "python/pip_install/pip_compile.py"
    }
  ]
}
