Add action_env flag to bazel.rc
Also remove the instructions to add the setting in `~/.bazelrc`,
which is no longer necessary.
This partially reverts commit 42cb2931be
.
Change-Id: Ie1f156cc47be5663ad0835d138cac5dd0ed5154e
This commit is contained in:

committed by
David Pursehouse

parent
38cb32d7b7
commit
370962bc72
@@ -377,16 +377,6 @@ link:https://github.com/bazelbuild/bazel/issues/5139[this bazel issue] for
|
||||
details. Users should watch the cache sizes and clean them manually if
|
||||
necessary.
|
||||
|
||||
Due to the `--experimental_strict_action_env` option used in `bazelrc`
|
||||
it is possible that some commands required by the build are not found
|
||||
on the PATH, causing the build to fail. In this case the PATH used in
|
||||
the build can be overridden with the `--action_env=PATH` directive in
|
||||
the user's `~/.bazelrc` file, for example:
|
||||
|
||||
----
|
||||
build --action_env=PATH=/usr/local/opt/coreutils/libexec/gnubin/:/usr/local/bin/:/usr/bin/
|
||||
----
|
||||
|
||||
GERRIT
|
||||
------
|
||||
Part of link:index.html[Gerrit Code Review]
|
||||
|
@@ -2,4 +2,5 @@ build --workspace_status_command=./tools/workspace-status.sh --strategy=Closure=
|
||||
build --disk_cache=~/.gerritcodereview/bazel-cache/cas
|
||||
build --repository_cache=~/.gerritcodereview/bazel-cache/repository
|
||||
build --experimental_strict_action_env
|
||||
build --action_env=PATH
|
||||
test --build_tests_only
|
||||
|
Reference in New Issue
Block a user