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

Record defaults for array children #30

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

awrichar
Copy link
Contributor

Currently defaults are not properly recorded if they are:

  • set using SetDefault (rather than at creation time with AddKnownKey)
  • a child or descendant of a config array

This PR fixes this functionality, along with bringing in the newest snapshot of Viper to pick up spf13/viper#1387.

@codecov-commenter
Copy link

Codecov Report

Merging #30 (43778f8) into main (133c038) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #30   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           39        39           
  Lines         2250      2251    +1     
=========================================
+ Hits          2250      2251    +1     
Impacted Files Coverage Δ
pkg/config/config.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@peterbroadhurst peterbroadhurst merged commit 76b7f49 into hyperledger:main Aug 11, 2022
@awrichar awrichar deleted the arrays branch August 11, 2022 20:13
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.

3 participants