mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-06 08:55:40 -05:00
[PR #1186] [CLOSED] fix: include main .env file in stack Info GUI when environment is configured #2991
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/1186
Author: @litlmike
Created: 2/8/2026
Status: ❌ Closed
Base:
main← Head:fix-issue-990📝 Commits (1)
4952489fix: include main .env file in stack info when environment is configured📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
client/core/rs/src/entities/stack.rs(+10 -0)📄 Description
Problem
When a stack has environment variables defined in its configuration, Komodo generates a
.envfile (at the path specified byenv_file_path, defaulting to.env). However, this file was not displayed in the Stack Info GUI unless the user redundantly added it to "Additional Env Files".Root Cause
The
all_file_paths()andall_file_dependencies()methods onStackincluded compose files, additional env files, and config files — but not the mainenv_file_paththat gets generated from theenvironmentconfiguration.Fix
When
environmentis non-empty, automatically includeenv_file_pathin bothall_file_paths()andall_file_dependencies(). This usesIndexSetso duplicates are handled if the path already appears elsewhere.Fixes #990
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.