Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement idiomatic environment variable handling #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rocketraman
Copy link
Contributor

@rocketraman rocketraman commented Mar 29, 2024

Leverage the capability exposed by #413 to implement idiomatic environment variable handling.

Fixes #410.

I've tried to implement this in a backward compatible way, but if we are ok with breaking compatibility for 3.0, given the new path normalization capability, we could replace the existing logic for env vars and simplify it down to always apply env vars with the new logic, removing the EnvironmentVariableOverridePropertySource and simplifying EnvironmentVariablesPropertySource to remove all the config vals, which is what I understood from #413 (comment).

This PR is stacked on top of #413 and will be rebased and moved out of draft once that PR is merged.

There is a test failure in this PR which will be resolved once #444 is merged.

@rocketraman rocketraman force-pushed the rg/env-var-idiomatic branch 2 times, most recently from fafb6a4 to 45e0f94 Compare April 1, 2024 13:48
@rocketraman rocketraman force-pushed the rg/env-var-idiomatic branch 3 times, most recently from 5448e02 to 7bcd7ab Compare April 4, 2024 03:40
@rocketraman rocketraman mentioned this pull request Apr 4, 2024
@rocketraman rocketraman force-pushed the rg/env-var-idiomatic branch 4 times, most recently from f0f6b50 to 29ff9c4 Compare April 4, 2024 17:57
@rocketraman rocketraman marked this pull request as ready for review July 15, 2024 16:11
@rocketraman
Copy link
Contributor Author

@sksamuel Now that #413 is merged (thank you!), I have rebased this.

@rocketraman
Copy link
Contributor Author

@sksamuel Any update on this?

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.

Support idiomatic environment variable naming
1 participant