You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Environment variables leaking into an action
An action definition contains environment variables. This can be a problem for sharing remote cache hits across machines. For example, environments with different $PATH variables won’t share cache hits. Only environment variables explicitly whitelisted via --action_env are included in an action definition. Bazel’s Debian/Ubuntu package used to install /etc/bazel.bazelrc with a whitelist of environment variables including $PATH. If you are getting fewer cache hits than expected, check that your environment doesn’t have an old /etc/bazel.bazelrc file.
The text was updated successfully, but these errors were encountered:
Another side effect is that with the same devcontainer image we will have two incompatible caches running the container from Vscode and using docker run from the terminal as the two PATH envs will not match
https://github.com/microsoft/vscode-dev-containers/tree/main/repository-containers/github.com/tensorflow/tensorflow/.devcontainer + many other containers that rely on bazel with the PATH in the
--actin_env
.Steps to Reproduce:
PATH=/vscode/vscode-server-insiders/bin/linux-x64/<daily-sha>-insider/bin/remote-cli
PATH
env in--action_env
:https://docs.bazel.build/versions/4.1.0/remote-caching.html#known-issues
The text was updated successfully, but these errors were encountered: