Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dgilman-hrp opened this issue Mar 5, 2025 · 0 comments

Comments

@dgilman-hrp
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant