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

Make --nobuild_runfiles_links work in combination with --run_under #14471

Conversation

EdSchouten
Copy link
Contributor

When both of these flags are provided, we must make sure that a "bazel
run" forcefully instantiates the runfiles directories both for the
target to run, and the --run_under target. Right now it only ensures
this for the former, which causes execution errors along the lines of:

Cannot find .runfiles directory for /some/path

This code alters the existing code block that ensures that runfiles
exist to loop over the entire set of targets. We do need to capture the
path of the runfiles directory of the target to run, as it may need be
used as the working directory later on.

When both of these flags are provided, we must make sure that a "bazel
run" forcefully instantiates the runfiles directories both for the
target to run, and the --run_under target. Right now it only ensures
this for the former, which causes execution errors along the lines of:

Cannot find .runfiles directory for /some/path

This code alters the existing code block that ensures that runfiles
exist to loop over the entire set of targets. We do need to capture the
path of the runfiles directory of the target to run, as it may need be
used as the working directory later on.
@bazel-io bazel-io closed this in 3badca3 Jan 5, 2022
@EdSchouten EdSchouten mentioned this pull request Jan 5, 2022
9 tasks
@EdSchouten EdSchouten deleted the eschouten/20211222-runfiles-run-under branch January 17, 2022 06:01
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

Successfully merging this pull request may close these issues.

3 participants