diff options
author | Klaus Aehlig <aehlig@google.com> | 2016-08-26 15:58:48 +0000 |
---|---|---|
committer | John Cater <jcater@google.com> | 2016-08-26 18:42:28 +0000 |
commit | 4c10f3f86f7a0530e83d4b2062b48676afafe2c0 (patch) | |
tree | cf4e6010fe9e1551a177b2c4dbb7c2276a1cfec3 /src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java | |
parent | 6488b3bc824a0f19ad2924d5f7c87181f06beed9 (diff) |
Make SpawnActions honor the client environment
...for the variables that supposed to be inherited from it. Note
That with this patch, we take the correct variables, but do not
yet track the dependency on changes to the client environment; this
will happen in a follow up patches.
Also add a test that demonstrates that the client environment rather
than that at startup is taken.
--
Change-Id: I4d33efa8eaf4f8b689c9b7f2130f71309f3343f0
Reviewed-on: https://bazel-review.googlesource.com/#/c/5392
MOS_MIGRATED_REVID=131406356
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java b/src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java index 3b02e119b6..09cf17600e 100644 --- a/src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java +++ b/src/main/java/com/google/devtools/build/lib/actions/ActionExecutionContext.java @@ -112,6 +112,10 @@ public class ActionExecutionContext { return executor; } + public ImmutableMap<String, String> getClientEnv() { + return clientEnv; + } + public ArtifactExpander getArtifactExpander() { return artifactExpander; } |