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

Commit

Permalink
allow empty depgraphs
Browse files Browse the repository at this point in the history
If an upstream build rule produces no source, then it's possible to have
an empty depgraph that is not malformed.
  • Loading branch information
evmar authored and nbeloglazov committed Oct 4, 2019
1 parent 8f4f123 commit c0f3389
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/google/javascript/clutz/Depgraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ static Depgraph parseFrom(List<String> fileNames) {
throw new RuntimeException("malformed depgraph: " + depgraphName, e);
}
}
if (result.roots.isEmpty() && result.rootExterns.isEmpty()) {
throw new IllegalStateException("No roots were found in the provided depgraphs files");
}

return result;
}

Expand Down

0 comments on commit c0f3389

Please sign in to comment.