code: def _on_invalid_compile_dependency(self, dep, compile_target, contexts):
      
      return contexts[compile_target][0].workflow.resolve_for_enum_variant({
        'zinc-only': lambda : contexts[dep][0].workflow == self.JvmCompileWorkflowType.rsc_then_zinc,
        'rsc-then-zinc': lambda : False
      })()
docs: Decide whether to continue searching for invalid targets to use in the execution graph.
  
      If a necessary dep is a rsc-then-zinc dep and the root is a zinc-only one, continue to recurse
      because otherwise we'll drop the path between Zinc compile of the zinc-only target and a Zinc
      compile of a transitive rsc-then-zinc dependency.
  
      This is only an issue for graphs like J -> S1 -> S2, where J is a zinc-only target,
      S1/2 are rsc-then-zinc targets and S2 must be on the classpath to compile J successfully.