Skip to content

How to share environment, specifically files, across multiple commands #70

@dgilman-hrp

Description

@dgilman-hrp

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions