Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Do not delete key from unused map if field value cannot be set #150

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Do not delete key from unused map if field value cannot be set #150

merged 1 commit into from
Mar 20, 2020

Conversation

mback2k
Copy link
Contributor

@mback2k mback2k commented Dec 16, 2018

Track unusable keys in case the value cannot be set. This helps troubleshoot issues in case a struct was unexported. It took me over a hour to find such an issue once, I would like to avoid this in the future.

@mitchellh
Copy link
Owner

Hi, its been over a year so I apologize but if you're interested in this I'd love to see a test case added here.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@mback2k
Copy link
Contributor Author

mback2k commented Mar 19, 2020

Thanks for your response, I just rebased and force-pushed my change, added a new test and updated existing metadata tests to include an unexported field. Please take a look.

@mitchellh
Copy link
Owner

Perfect. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants