Look in the local cache for module installer

Looks in the local _cfg custom module cache location for the module, in case the module is one that was sourced from an external location
This commit is contained in:
Kevin Heidt 2025-12-09 12:59:35 -05:00 committed by GitHub
parent cf50f4935d
commit fca70dd0c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -1122,7 +1122,13 @@ class ModuleManager {
if (moduleName === 'core') {
sourcePath = getSourcePath('core');
} else {
sourcePath = await this.findModuleSource(moduleName);
// First check if module is in cache (for custom modules installed from external directories)
const cachePath = path.join(bmadDir, '_cfg', 'custom', moduleName);
if (await fs.pathExists(cachePath)) {
sourcePath = cachePath;
} else {
sourcePath = await this.findModuleSource(moduleName);
}
if (!sourcePath) {
// No source found, skip module installer
return;