Simplify the decision on whether to do remote include extraction. If we are
using an output service and am dealing with an output file, then the file will
likely be remote.
RELNOTES: None.
@@ -130,8 +130,7 @@ public class SpawnIncludeScanner {
// Files written remotely that are not locally available should be scanned remotely to avoid the
// bandwidth and disk space penalty of bringing them across. Also, enable include scanning
// remotely when explicitly directed to via a flag.
- if (remoteExtractionThreshold == 0
- || (outputService != null && outputService.isRemoteFile(file))) {
+ if (remoteExtractionThreshold == 0 || (outputService != null && !file.isSourceArtifact())) {
return true;
}
FileStatus status = syscallCache.get().statIfFound(file.getPath(), Symlinks.FOLLOW);
