Skip to content

fix: preserve equals signs in merged environment values - #559

Open
bensynapse wants to merge 1 commit into
F1bonacc1:mainfrom
bensynapse:fix-environment-equals
Open

bensynapse wants to merge 1 commit into
F1bonacc1:mainfrom
bensynapse:fix-environment-equals

Conversation

@bensynapse

Copy link
Copy Markdown

I run Live Tennis API.

Fixes #554.

Config merging drops values such as A=a=b and padded base64 strings. Splitting assignments at the first equals sign preserves the full value for config overrides and extends.

The regressions cover global and process environments, overrides and parent preservation. All three cases fail on the original code.

make build, make testrace and make lint pass on Linux with Go 1.26.6. Seven compiled CLI cases also pass, including both file orders and inherited overrides. Nix isn't installed here, so I haven't run the Nix build.

Split environment assignments at the first equals sign so config merges
and extends keep complete values. Cover global and process overrides,
inheritance, empty values and parent preservation.
@sonarqubecloud

sonarqubecloud Bot commented Oct 2, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

environment entries whose value contains "=" are silently dropped when merging config files or using extends

1 participant