Is it possible to share the file output across multiple commands?
compile_pip_requirements(
name = "requirements",
requirements_in = "requirements.in",
requirements_txt = "requirements.txt",
verbose = True,
)
py_venv(
name = "venv",
data = all_data_requirements,
venv_location = "backend/code/.venv",
deps = all_requirements,
)
multirun(
name = "reqs",
commands = [
"requirements.update",
"venv"
],
)
Running this command yields:
with open(os.environ["BUILD_ENV_INPUT"]) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'bazel-out/darwin_arm64-fastbuild/bin/backend/code/_venv_deps.json'
Is there a recommended way to string these together?