aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-06-29 07:48:59 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-29 16:39:38 +0000
commitcf49294141665da4f4d005610c816fc591c08c22 (patch)
tree91d6c466f5b2c5c0c74fd1db66ca63ec82ae4a22 /src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java
parent4313d37941a4c8196af112e9bf3b22d6c366d3cc (diff)
Remove BuildConfiguration.cacheKey() and replace .shortCacheKey() with a .checksum() method that is computed from the checksum of the build options. Also remove Fragment.cacheKey() and Fragment.getName().
The reasoning is that within a single build, if two BuildConfigurations share the same BuildOptions, they must be the same because BuildConfiguration can only be a function of BuildOptions, specific targets (which stay the same during a build) and BlazeDirectories (which stay the same during the lifetime of a server). Between different builds if the configurations are recreated, they will always be considered different because Java reference equality (==) is used for comparing BuildConfigurations. Also remove "Serializable" tags from configuration-related things. -- MOS_MIGRATED_REVID=97107881
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java b/src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java
index ab59f635bf..7cf9ae7ac1 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/ActionOwner.java
@@ -56,7 +56,7 @@ public interface ActionOwner {
* <p>These requirements exist so that {@link ActionOwner} instances are consistent with
* {@code BuildView.ActionOwnerIdentity(ConfiguredTargetValue)}.
*/
- String getConfigurationShortCacheKey();
+ String getConfigurationChecksum();
/**
* Returns the target kind (rule class name) for this ActionOwner, if any; null otherwise.