You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Allow requirements_in to be generated
We generate the `requirements_in` file from various input files
roughly like so:
genrule(
name = "generate_3.7_x86_requirements",
srcs = [
"requirements_base.in.txt",
"requirements_extra_37.in.txt",
],
outs = ["requirements_3.7_x86.txt"],
cmd = "cat $(SRCS) > $(OUTS)",
)
compile_pip_requirements(
name = "compile_requirements_3.7_x86",
requirements_in = ":requirements_3.7_x86.txt",
requirements_txt = "requirements_3.7_x86.lock.txt",
)
The current code errors out with a message like this:
Updating common/python/requirements_3.7_x86.lock.txt
Usage: pip_compile.py [OPTIONS] [SRC_FILES]...
Try 'pip_compile.py -h' for help.
Error: Invalid value for '[SRC_FILES]...': Path 'common/python/requirements_3.7_x86.txt' does not exist.
This patch here fixes the issue by resolving the `requirements_in`
path before the tool `cd`s into the workspace directory.
* Make tests pass
* Run black
* Fix some runtime problems
Co-authored-by: Thulio Ferraz Assis <[email protected]>
0 commit comments