Put grepped_includes file into a separate directory for tree file artifacts also in async mode.
This was missed in
RELNOTES: None.
@@ -393,8 +393,9 @@ public class SpawnIncludeScanner {
ActionExecutionContext actionExecutionContext,
Artifact grepIncludes,
GrepIncludesFileType fileType,
- boolean placeNextToFile)
+ boolean isOutputFile)
throws IOException {
+ boolean placeNextToFile = isOutputFile && !file.hasParent();
Path output =
getIncludesOutput(
file, actionExecutionContext.getPathResolver(), fileType, placeNextToFile);
