Repository navigation
Improves handling of env prefixes containing __ - #65757
Conversation
Both the un-altered and colon-normalized prefixes now match environment variables in either the __ or colon formats. The change includes minor refactors to the EnvironmentVariablesConfigurationProvider to make the code easier to follow and reduce the likelihood of future regressions. Test naming has been made clearer, and a comprehensive test has been added. Fix dotnet#65756
|
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue DetailsThis PR is intended to fix #65756. Key changes:
The change includes minor refactors to the EnvironmentVariablesConfigurationProvider to make the code easier to follow and reduce the likelihood of future regressions. Test naming has been made clearer, and a comprehensive test has been added. If approved for merge into 6.0.x, this would fix the breaking change in 6.0.2 documented in #65756.
|
|
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
|
Thanks for the PR @dhedey. Does the PR also have a test to cover the regression use case and showing that is not broken with the changes in this PR? |
|
Hi @maryamariyan - thanks for taking a look for me :) Yes, as it happens, this is already covered by the test that was written as part of #62819 - in particular This checks that an environment variable written in "Linux" mode with |
|
Thanks @dhedey for the contribution! This should make it to preview 4. |
Many thanks @maryamariyan. Understood - will be sure to separate my commits better next time! |
Both the un-altered and colon-normalized prefixes now match environment variables in either the __ or colon formats. The change includes minor refactors to the EnvironmentVariablesConfigurationProvider to make the code easier to follow and reduce the likelihood of future regressions. Test naming has been made clearer, and a comprehensive test has been added. Fix dotnet#65756
|
@maryamariyan did you create a breaking change document for this? |
|
@ericstj Yes she did - dotnet/docs#31490. |
|
Thank you @gewarren. @maryamariyan can you please follow the steps here #65757 (comment)? |
|
Done. Thanks. |
This PR is intended to fix #65756.
Key changes:
:and__prefix, and relies on the fact that these don't match)The change includes minor refactors to the EnvironmentVariablesConfigurationProvider to make the code easier to follow and reduce the likelihood of future regressions. Test naming has been made clearer, and a comprehensive test has been added.
If approved for merge into 6.0.x, this would fix the breaking change in 6.0.2 documented in #65756.