Skip to content

fix(config): Fix env var priority over file config#467

Merged
JeanMertz merged 1 commit intomainfrom
prr37
Mar 21, 2026
Merged

fix(config): Fix env var priority over file config#467
JeanMertz merged 1 commit intomainfrom
prr37

Conversation

@JeanMertz
Copy link
Collaborator

The load_envs function was merging in the wrong order, passing the file-based config as the argument to merge. In schematic, the argument to merge takes precedence over the receiver, so this caused file configuration to silently override environment variables — the opposite of the intended behavior.

The fix swaps the receiver and argument: environment variables now merge into the file-based config, correctly taking precedence over any file-level settings.

The `load_envs` function was merging in the wrong order, passing the
file-based config as the argument to `merge`. In schematic, the argument
to `merge` takes precedence over the receiver, so this caused file
configuration to silently override environment variables — the opposite
of the intended behavior.

The fix swaps the receiver and argument: environment variables now merge
into the file-based config, correctly taking precedence over any
file-level settings.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 6147df9 into main Mar 21, 2026
12 checks passed
@JeanMertz JeanMertz deleted the prr37 branch March 21, 2026 19:16
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.

1 participant