Run StrictDepsPass in the SoyHeaderPass. This will make it so that just building the :soy target will also cause build failures if strict deps is not checked.
Test failures are unrelated. Context:
GITHUB_BREAKING_CHANGES=SoyHeaderCompilerPass will now fail if strict deps not passing.
@@ -1077,8 +1077,9 @@ public final class SoyFileSet {
*/
ParseResult compileMinimallyForHeaders() {
return entryPoint(
- () ->
- parse(
+ () -> {
+ disallowExternalCalls();
+ return parse(
passManagerBuilder()
// Because we allow this for JS generated templates, we allow this for
// headers.
@@ -1089,7 +1090,8 @@ public final class SoyFileSet {
.addPassContinuationRule(
CheckTemplateHeaderVarsPass.class, PassContinuationRule.STOP_BEFORE_PASS)
.allowV1Expression(),
- typeRegistry));
+ typeRegistry);
+ });
}
ImmutableMap<String, SoyFunction> getSoyFunctions() {
