Skip to content

key: keep empty shadows when PreserveEmptyShadows is set - #399

Open
team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:preserve-empty-shadows
Open

team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:preserve-empty-shadows

Conversation

@team-humaki

Copy link
Copy Markdown

ValueWithShadows currently omits empty assignments. That drops systemd-style resets (Environment= clears prior values).

Add opt-in LoadOptions.PreserveEmptyShadows so callers can keep empty shadow values without changing the default.

Fixes #366

ValueWithShadows dropped empty assignments, which breaks systemd-style
resets. Opt in with LoadOptions.PreserveEmptyShadows.

Fixes go-ini#366
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.

Add option to preserve empty values in ValueWithShadows

1 participant