Skip to content

fix: correct lookup for environment variables in cache#808

Open
Skywalkr-dev wants to merge 1 commit into
opencontainers:masterfrom
Skywalkr-dev:fix-env-lookup
Open

fix: correct lookup for environment variables in cache#808
Skywalkr-dev wants to merge 1 commit into
opencontainers:masterfrom
Skywalkr-dev:fix-env-lookup

Conversation

@Skywalkr-dev
Copy link
Copy Markdown

@Skywalkr-dev Skywalkr-dev commented May 22, 2026

The current implementation keys the environment cache by the full "NAME=VALUE" string. This causes the generator to treat updates to existing variables as new entries, leading to duplicate environment variables in the final configuration.

This change switches the cache key to use only the variable name, ensuring that AddProcessEnv correctly updates existing values instead of appending them.

FIXES: #798
Signed-off-by: Skywalkr-dev snaveenbharath2005@gmail.com

fix: correct lookup for environment variables in cache

The current implementation keys the environment cache by the full
"NAME=VALUE" string. This causes the generator to treat updates to
existing variables as new entries, leading to duplicate environment
variables in the final configuration.

This change switches the cache key to use only the variable name,
ensuring that `AddProcessEnv` correctly updates existing values
instead of appending them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in createEnvCacheMap()

1 participant