From a7f469690ada0f36613707eda90e1b302b18ee9a Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Thu, 9 Apr 2026 08:58:31 -0500 Subject: [PATCH] fix(installer): manifest-generator overwrites custom module version/repoUrl ManifestGenerator rebuilds the entire manifest via getModuleVersionInfo for every module. For custom modules, this returned null for version and repoUrl because it only checked _readMarketplaceVersion (which searches for marketplace.json on disk) and hardcoded repoUrl to null. Now checks the resolution cache first to get the correct version and repo URL. --- tools/installer/core/manifest.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/installer/core/manifest.js b/tools/installer/core/manifest.js index d810ec1d3..88190ccbf 100644 --- a/tools/installer/core/manifest.js +++ b/tools/installer/core/manifest.js @@ -835,14 +835,15 @@ class Manifest { // Check if this is a custom module (from user-provided URL) const { CustomModuleManager } = require('../modules/custom-module-manager'); const customMgr = new CustomModuleManager(); + const resolved = customMgr.getResolution(moduleName); const customSource = await customMgr.findModuleSourceByCode(moduleName); - if (customSource) { - const customVersion = await this._readMarketplaceVersion(moduleName, moduleSourcePath); + if (customSource || resolved) { + const customVersion = resolved?.version || (await this._readMarketplaceVersion(moduleName, moduleSourcePath)); return { version: customVersion, source: 'custom', npmPackage: null, - repoUrl: null, + repoUrl: resolved?.repoUrl || null, }; }