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

Deprecate usage of bare env vars and config sources #5153

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Jul 29, 2024

Deprecate usage of bare environment variables and config sources in configuration files.

  • Use ${env:VAR} or ${VAR} instead of $VAR.
  • Use ${uri:selector} instead of $uri:selector, e.g. ${file:/path/to/file} instead of $file:/path/to/file.

Detect such usages and print a deprecation warning. It's ok to not use logger because it's not initiated at this point yet. We use log.Print at this stage in other places as well.

@dmitryax dmitryax marked this pull request as ready for review July 29, 2024 21:58
@dmitryax dmitryax requested review from a team as code owners July 29, 2024 21:58
@dmitryax dmitryax force-pushed the deprecate-bare-style-expansion branch 5 times, most recently from ce473ff to a979479 Compare July 29, 2024 22:08
Deprecate usage of bare environment variables and config sources in configuration files.
  - Use `${env:VAR}` or `${VAR}` instead of `$VAR`.
  - Use `${uri:selector}` instead of `${uri:selector}`, e.g. `${file:/path/to/file}` instead of `$file:/path/to/file`.

Detect such usages and print a deprecation warning. It's ok to not use logger because it's not initiated at this point yet. We use `log.Print` at the stage in other places as well.
@dmitryax dmitryax force-pushed the deprecate-bare-style-expansion branch from a979479 to 7470480 Compare July 29, 2024 22:31
@dmitryax dmitryax merged commit be7c556 into main Jul 29, 2024
52 checks passed
@dmitryax dmitryax deleted the deprecate-bare-style-expansion branch July 29, 2024 23:02
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants