Make sure runfiles fingerprinting accounts for empty files
Previously, Runfiles#fingerprint (and actions that depend on it for their key) would collide when runfiles differed only by empty files. This is a correctness bug exercised by changes like
RELNOTES: None
@@ -1188,5 +1188,9 @@ public final class Runfiles implements RunfilesApi {
fp.addPath(artifact.getRootRelativePath());
fp.addPath(artifact.getExecPath());
}
+
+ for (String name : getEmptyFilenames()) {
+ fp.addString(name);
+ }
}
}
