[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: Prevent empty environment field

FoxxMD (Aug 14, 2025, 4:22 PM UTC) 617c66ce 5f9c4753

+3 -1
+3 -1
src/builders/stack/stackUtils.ts
··· 5 5 import { CommonImportOptions } from "../../common/infrastructure/config/common.js"; 6 6 import { CommonStackConfig } from "../../common/infrastructure/config/stackConfig.js"; 7 7 import { join } from 'path'; 8 + import createStatsCollector from "mocha/lib/stats-collector"; 8 9 9 10 export const DEFAULT_COMPOSE_GLOB = '**/{compose,docker-compose}*.y?(a)ml'; 10 11 ··· 77 78 for (const f of envFiles) { 78 79 envContents.push(await readText(join(path, f))) 79 80 } 80 - config.environment = envContents.join('\n'); 81 + const nonEmptyContents = envContents.filter(x => x.trim() !== ''); 82 + config.environment = nonEmptyContents.length > 0 ? nonEmptyContents.join('\n') : undefined; 81 83 } 82 84 else { 83 85 config.env_file_path = komodoEnvName