ModuleHandler::addModule() and ModuleHandler::addProfile() require that the module and path point to a valid module and if they are invalid weird things could happen. Sun said these should use the @internal annotations( #340723-185: Make modules and installation profiles only require .info.yml files β ) and these methods are for special cases like the installer. Even so, since they are public we should clarify. This clarification will also help regardless of accepting use of the @internal tag.
Needs work
11.0 π₯
extension system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.