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

decodeMapFromStruct: Only deref element if we're squashing the struct #232

Merged
merged 1 commit into from Jan 12, 2021

Conversation

mitchellh
Copy link
Owner

Fixes #231

This also reverts the test change that was introduced in 231 back to
the original test. This retains the new tests added in 231 to verify
the behavior of 231.

cc @dnephin

},
"Vfoo": "",
},
"omittable-nested": &Nested{},
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is just reverting the change in #205 back to what the test originally was.

Fixes #231

This also reverts the test _change_ that was introduced in 231 back to
the original test. This retains the _new tests_ added in 231 to verify
the behavior of 231.
Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Nice! LGTM, thank you for fixing!

I'll give it another try with Consul test suite tomorrow, but I'm pretty sure this will fix it.

@mitchellh mitchellh merged commit 18a713d into master Jan 12, 2021
@mitchellh mitchellh deleted the issue-231 branch January 12, 2021 04:19
@dnephin
Copy link
Contributor

dnephin commented Jan 12, 2021

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.

1.4.0: decode hooks receive the wrong type for the to argument
2 participants