use of com.google.devtools.build.lib.util.Fingerprint in project bazel by bazelbuild.
the class TemplateExpansionAction method computeKey.
@Override
protected String computeKey() {
Fingerprint f = new Fingerprint();
f.addString(GUID);
f.addString(String.valueOf(makeExecutable));
f.addString(template.getKey());
f.addInt(substitutions.size());
for (Substitution entry : substitutions) {
f.addString(entry.getKey());
f.addString(entry.getValue());
}
return f.hexDigestAndReset();
}
use of com.google.devtools.build.lib.util.Fingerprint in project bazel by bazelbuild.
the class ParameterFileWriteAction method computeKey.
@Override
protected String computeKey() {
Fingerprint f = new Fingerprint();
f.addString(GUID);
f.addString(String.valueOf(makeExecutable));
f.addString(type.toString());
f.addStrings(commandLine.arguments());
return f.hexDigestAndReset();
}
use of com.google.devtools.build.lib.util.Fingerprint in project bazel by bazelbuild.
the class PopulateTreeArtifactAction method computeKey.
@Override
protected String computeKey() {
Fingerprint f = new Fingerprint();
f.addString(GUID);
f.addString(getMnemonic());
f.addStrings(spawnCommandLine());
f.addPaths(zipper.getRunfilesSupplier().getRunfilesDirs());
List<Artifact> runfilesManifests = zipper.getRunfilesSupplier().getManifests();
f.addInt(runfilesManifests.size());
for (Artifact manifest : runfilesManifests) {
f.addPath(manifest.getExecPath());
}
return f.hexDigestAndReset();
}
use of com.google.devtools.build.lib.util.Fingerprint in project bazel by bazelbuild.
the class SpawnAction method computeKey.
@Override
protected String computeKey() {
Fingerprint f = new Fingerprint();
f.addString(GUID);
f.addStrings(argv.arguments());
f.addString(getMnemonic());
// We don't need the toolManifests here, because they are a subset of the inputManifests by
// definition and the output of an action shouldn't change whether something is considered a
// tool or not.
f.addPaths(getRunfilesSupplier().getRunfilesDirs());
ImmutableList<Artifact> runfilesManifests = getRunfilesSupplier().getManifests();
f.addInt(runfilesManifests.size());
for (Artifact runfilesManifest : runfilesManifests) {
f.addPath(runfilesManifest.getExecPath());
}
f.addStringMap(getEnvironment());
f.addStrings(getClientEnvironmentVariables());
f.addStringMap(getExecutionInfo());
return f.hexDigestAndReset();
}
use of com.google.devtools.build.lib.util.Fingerprint in project bazel by bazelbuild.
the class SymlinkAction method computeKey.
@Override
protected String computeKey() {
Fingerprint f = new Fingerprint();
f.addString(GUID);
// We don't normally need to add inputs to the key. In this case, however, the inputPath can be
// different from the actual input artifact.
f.addPath(inputPath);
return f.hexDigestAndReset();
}
Aggregations