Every PrecompiledModule reachable from the current build's root module. Safe to call after module construction completes — e.g. inside a Task body or a moduleDeps override. Reading this from a non-lazy field initializer on a PrecompiledModule subclass will deadlock, because the discovery walk is itself in progress while the subclass is being constructed.
Every PrecompiledModule reachable from the current build's root module. Safe to call after module construction completes — e.g. inside a Task body or a moduleDeps override. Reading this from a non-lazy field initializer on a PrecompiledModule subclass will deadlock, because the discovery walk is itself in progress while the subclass is being constructed.
Returns an empty sequence if no build is active (e.g. BuildCtx.rootModule has not yet been published).