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 omitempty yaml tag to deprecated log.Wrapper fields #658

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Aug 15, 2024

Also implement log.Wrapper.MarshalYAML for nil values.

Also add yaml:"-" explicitly for config struct fields that's not yaml-unmarshal-able.

@fishy fishy force-pushed the omit-empty-deprecated-log-wrapper branch 3 times, most recently from 4f0d350 to 95c61de Compare August 15, 2024 17:48
@fishy fishy marked this pull request as ready for review August 15, 2024 17:58
@fishy fishy requested a review from a team as a code owner August 15, 2024 17:58
@fishy fishy requested review from kylelemons, konradreiche and pacejackson and removed request for a team August 15, 2024 17:58
Copy link
Contributor

@kylelemons kylelemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update PR description?

(Also note that this bumps the minimum version for baseplate.go in the release notes)

@fishy
Copy link
Member Author

fishy commented Aug 15, 2024

(Also note that this bumps the minimum version for baseplate.go in the release notes)

I just included #659, as otherwise the CI would not run.

@fishy
Copy link
Member Author

fishy commented Aug 15, 2024

Update PR description?

I think the current PR description covered everything that's not in #659? Do you notice anything missing?

@fishy fishy force-pushed the omit-empty-deprecated-log-wrapper branch from 95c61de to cfb81f7 Compare August 15, 2024 20:35
@fishy fishy requested a review from kylelemons August 15, 2024 22:51
@fishy fishy force-pushed the omit-empty-deprecated-log-wrapper branch from a2c7e9e to 01609be Compare August 15, 2024 22:51
@fishy fishy force-pushed the omit-empty-deprecated-log-wrapper branch from 01609be to a6a4382 Compare August 15, 2024 23:06
Also implement log.Wrapper.MarshalYAML for nil values.

Also add `yaml:"-"` explicitly for config struct fields that's not
yaml-unmarshal-able.
@fishy fishy force-pushed the omit-empty-deprecated-log-wrapper branch from a6a4382 to 6c818f5 Compare August 15, 2024 23:07
@fishy fishy merged commit febde9a into master Aug 15, 2024
2 checks passed
@fishy fishy deleted the omit-empty-deprecated-log-wrapper branch August 15, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants