[READ-ONLY] Mirror of https://github.com/FoxxMD/komodo-import. Import existing compose stacks into Komodo foxxmd.github.io/komodo-import
compose docker import komodo toml
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: WRITE_ENV not passed to all stack builders

FoxxMD (Aug 14, 2025, 3:24 PM UTC) 5f9c4753 a2f70c31

+7 -7
+7 -7
src/builders/stack/stackBuilder.ts
··· 21 21 ignoreFolderGlob 22 22 } = options; 23 23 24 - let stackOptions = options; 24 + let stackOptions = { 25 + ...options, 26 + writeEnv: parseBool(process.env.WRITE_ENV, false) 27 + }; 25 28 26 29 const logger = childLogger(parentLogger, 'Stacks'); 27 30 let topDir: string; ··· 102 105 stackOptions = { 103 106 ...stackOptions, 104 107 ...gitStackConfig, 105 - writeEnv: parseBool(process.env.WRITE_ENV, false), 106 108 inMonorepo: true 107 109 } 108 110 } ··· 128 130 try { 129 131 stacks.push(await buildGitStack(f, { 130 132 inMonorepo: false, 131 - writeEnv: parseBool(process.env.WRITE_ENV, false), 132 - ...options, 133 + ...stackOptions, 133 134 logger 134 135 })); 135 136 continue; ··· 146 147 } 147 148 } 148 149 149 - const opts = options as FilesOnServerConfig; 150 150 if (!hostParentPathVerified) { 151 - if (isUndefinedOrEmptyString(opts.hostParentPath)) { 151 + if (isUndefinedOrEmptyString(stackOptions.hostParentPath)) { 152 152 throw new Error('env HOST_PARENT_PATH is not set'); 153 153 } 154 154 hostParentPathVerified = true; 155 155 } 156 156 try { 157 - stacks.push(await buildFileStack(f, { ...opts, logger })); 157 + stacks.push(await buildFileStack(f, { ...stackOptions, logger })); 158 158 } catch (e) { 159 159 folderLogger.error(new Error(`Unable to build Files-On-Server Stack for folder ${f}`, { cause: e })); 160 160 }