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

Implement strict yaml unmarshalling. #310

Merged
merged 1 commit into from
Apr 16, 2018
Merged

Conversation

manosf
Copy link
Contributor

@manosf manosf commented Apr 12, 2018

As a followup from prometheus/prometheus#4033 and prometheus/common/pull/127, I added strict yaml unmarshalling by updating the yaml vendor package and removing unnecessary checks and data structures.
I avoided code refactoring on the yaml Unmarshaler implementations inside config/config.go for this PR, in order to keep it simple. Please let me know if I should change it.

@brian-brazil
Copy link
Contributor

That's fine, could you fix the tests?

@manosf
Copy link
Contributor Author

manosf commented Apr 12, 2018

Yes, this is what I'm trying to do right now, even though I have found a really weird problem with the tests. I'll update everything as soon as it's ready, and probably I'll squash all the commits to satisfy the DCO check.

Signed-off-by: manosf <manosf@protonmail.com>
@brian-brazil brian-brazil merged commit 969228a into prometheus:master Apr 16, 2018
@brian-brazil
Copy link
Contributor

Thanks!

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.

2 participants