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

Add options to confmap Marshal/Unmarshal, deprecate UnmarshalExact #6231

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

bogdandrutu
Copy link
Member

Officially this can be considered breaking change because of a use in a var foo func(interface{}) error = conf.Unmarshal, not in a normal calling usage, but this is an edgecase that we can except and move forward with this.

This will allow to add more options to Marshal/Unmarshal in the future.

@bogdandrutu bogdandrutu requested review from a team and jpkrohling October 4, 2022 18:08
@bogdandrutu bogdandrutu changed the title Add options to confmap Marshal/Unmarshal, deprecat UnmarshalExact Add options to confmap Marshal/Unmarshal, deprecate UnmarshalExact Oct 4, 2022
@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 92.22% // Head: 92.21% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (6b8589e) compared to base (e4cfde4).
Patch coverage: 94.44% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6231      +/-   ##
==========================================
- Coverage   92.22%   92.21%   -0.01%     
==========================================
  Files         219      219              
  Lines       13446    13456      +10     
==========================================
+ Hits        12401    12409       +8     
- Misses        815      817       +2     
  Partials      230      230              
Impacted Files Coverage Δ
confmap/confmap.go 92.35% <92.85%> (-0.85%) ⬇️
config/common.go 100.00% <100.00%> (ø)
receiver/otlpreceiver/config.go 84.00% <100.00%> (ø)
...e/internal/configunmarshaler/defaultunmarshaler.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.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bogdandrutu
Copy link
Member Author

/cc @djaglowski

@bogdandrutu bogdandrutu force-pushed the confmapopt branch 3 times, most recently from 4417d70 to 69ff475 Compare October 4, 2022 18:25
confmap/confmap.go Outdated Show resolved Hide resolved
confmap/confmap.go Outdated Show resolved Hide resolved
Officially this can be considered breaking change because of a use in a `var foo func(interface{}) error = conf.Unmarshal`, not in a normal calling usage, but this is an edgecase that we can except and move forward with this.

Signed-off-by: Bogdan <[email protected]>
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