Don't construct directories when using ActionFS - these are implicit.
@@ -766,6 +766,11 @@ public final class SkyframeActionExecutor {
}
private void createOutputDirectories(Action action) throws ActionExecutionException {
+ if (usesActionFileSystem()) {
+ // ActionFileSystem constructs directories implicitly.
+ return;
+ }
+
try {
Set<Path> done = new HashSet<>(); // avoid redundant calls for the same directory.
for (Artifact outputFile : action.getOutputs()) {
