diff options
author | Klaus Aehlig <aehlig@google.com> | 2016-09-13 16:46:10 +0000 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2016-09-14 09:35:04 +0000 |
commit | 6f33a1c54e517d7343c36d0479713655a19f3224 (patch) | |
tree | 3e4920aa44a9ad54a06d2b6a574127fee8829e7b /src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java | |
parent | 4d94984c61892749315a6c98a3b1facf84762653 (diff) |
Track client environment in Skyframe
...to determine which actions have to be recomputed based on changes
to the client environment. Note that this change does it the simple way
and reconsideres all actions on a changed client environment, while still
only reexecuting those, where the part that was inherited from the environment
actually did change.
--
Change-Id: Ie1116d094642165e5e959447a6fcf49d19b37d6e
Reviewed-on: https://bazel-review.googlesource.com/#/c/5431
MOS_MIGRATED_REVID=133010705
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java index bc9977e4c9..d572058eac 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/PrecomputedValue.java @@ -83,6 +83,9 @@ public final class PrecomputedValue implements SkyValue { static final Precomputed<UUID> BUILD_ID = new Precomputed<>(SkyKey.create(SkyFunctions.PRECOMPUTED, "build_id")); + static final Precomputed<Map<String, String>> CLIENT_ENV = + new Precomputed<>(SkyKey.create(SkyFunctions.PRECOMPUTED, "client_env")); + static final Precomputed<WorkspaceStatusAction> WORKSPACE_STATUS_KEY = new Precomputed<>(SkyKey.create(SkyFunctions.PRECOMPUTED, "workspace_status_action")); |