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

[6.4.0] Clear runfiles environment variables for bazel run #19606

Merged

Commits on Sep 23, 2023

  1. Clear runfiles environment variables for bazel run

    When an environment variable such as `RUNFILES_DIR` is set in the client environment when a target using runfiles libraries is run via `bazel run`, the libraries can't look up the runfiles directory or manifest.
    
    This is fixed by clearing the runfiles-related environment variables from the env in which the target is executed.
    
    Fixes bazelbuild#17571
    
    Closes bazelbuild#17690.
    
    PiperOrigin-RevId: 516474822
    Change-Id: Ia5201d4334b286b36ba2e476e850b98992ca0ffa
    fmeum committed Sep 23, 2023
    Configuration menu
    Copy the full SHA
    4720e67 View commit details
    Browse the repository at this point in the history