067657c1e9
Previously, the transitive scope calculation could lead into re-compiling the same module multiple times. This fix ensures we cannot get into this loop. It should be fixed more completely (e.g. more cases) once FW-1178 is resolved. PR Close #29402