public interface SupportsInputBasedRuleKey extends BuildRule
BuildRule
s implementing this interface will cause rule key to be computed by
enumerating their dependencies implicitly through their inputs, which are described by SourcePath
s added to their RuleKey
.
Input-based rule keys are generally more accurate than normal rule keys, as they won't necessarily change if the rule key of a dependency changed. Instead, they only change if a the actual inputs to the rule change.
InputBasedRuleKeyFactory
Modifier and Type | Method and Description |
---|---|
default boolean |
inputBasedRuleKeyIsEnabled() |
static boolean |
isSupported(BuildRule rule) |
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
default boolean inputBasedRuleKeyIsEnabled()
static boolean isSupported(BuildRule rule)