Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit c0f3389

Browse files
evmarnbeloglazov
authored andcommitted
allow empty depgraphs
If an upstream build rule produces no source, then it's possible to have an empty depgraph that is not malformed.
1 parent 8f4f123 commit c0f3389

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/google/javascript/clutz/Depgraph.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ static Depgraph parseFrom(List<String> fileNames) {
112112
throw new RuntimeException("malformed depgraph: " + depgraphName, e);
113113
}
114114
}
115-
if (result.roots.isEmpty() && result.rootExterns.isEmpty()) {
116-
throw new IllegalStateException("No roots were found in the provided depgraphs files");
117-
}
115+
118116
return result;
119117
}
120118

0 commit comments

Comments
 (0)