diff options
author | 2016-08-26 08:16:25 +0000 | |
---|---|---|
committer | 2016-08-26 18:40:43 +0000 | |
commit | d2fcd9d05823563f1d77eebe19e1caa334724740 (patch) | |
tree | 172eef02e880653d6c8ca3fa34387552d46e2b81 /src/main/java/com/google/devtools/build/lib/runtime | |
parent | 112e02ac2396d133b669ff6f58a37a0cc3c84a37 (diff) |
Add client environment to ActionExecutionContext
As the execution of an action now also depends on the client environment,
make the latter part of the ActionExecutionContext, so that enough context
is provided to actually execute an action.
--
Change-Id: Ida7bf407ef0c0375728faba92494bfd47dcbaeb8
Reviewed-on: https://bazel-review.googlesource.com/#/c/5391
MOS_MIGRATED_REVID=131377490
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java index bbc54d204d..f536e937a3 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeWorkspace.java @@ -21,7 +21,6 @@ import com.google.common.eventbus.EventBus; import com.google.common.eventbus.SubscriberExceptionHandler; import com.google.devtools.build.lib.actions.cache.ActionCache; import com.google.devtools.build.lib.actions.cache.CompactPersistentActionCache; - import com.google.devtools.build.lib.analysis.BlazeDirectories; import com.google.devtools.build.lib.analysis.WorkspaceStatusAction; import com.google.devtools.build.lib.analysis.config.BinTools; @@ -35,11 +34,9 @@ import com.google.devtools.build.lib.util.Preconditions; import com.google.devtools.build.lib.vfs.FileSystemUtils; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.common.options.OptionsProvider; - import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; - import javax.annotation.Nullable; /** @@ -188,7 +185,10 @@ public final class BlazeWorkspace { } public CommandEnvironment initCommand() { - return new CommandEnvironment(runtime, this, new EventBus(eventBusExceptionHandler)); + CommandEnvironment env + = new CommandEnvironment(runtime, this, new EventBus(eventBusExceptionHandler)); + skyframeExecutor.setClientEnv(env.getClientEnv()); + return env; } void clearEventBus() { |