Skip to content

Conversation

mraerino
Copy link
Contributor

@mraerino mraerino commented Dec 16, 2020

#183 introduced a breaking change that meant the struct tag mapstructure could no longer be used to map config keys.

since this is used in various services we need to restore this behaviour.

@mraerino mraerino added the type: bug code to address defects in shipped code label Dec 16, 2020
@mraerino mraerino requested review from mheffner and rybit December 16, 2020 14:50
@mraerino mraerino requested a review from a team as a code owner December 16, 2020 14:50
@mraerino mraerino self-assigned this Dec 16, 2020
return fmt.Errorf("failed to read config: %w", err)
}

if err := mapstructure.Decode(&config, &input); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be just input?

This comment was marked as outdated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, yup. changed.

@mraerino mraerino requested a review from mheffner December 16, 2020 15:48
Copy link
Contributor

@mheffner mheffner left a comment

Choose a reason for hiding this comment

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

👍

@mraerino mraerino merged commit 8d1e696 into master Dec 16, 2020
@mraerino mraerino deleted the fix/config-deserialize branch December 16, 2020 20:55
mraerino added a commit that referenced this pull request Dec 18, 2020
mraerino added a commit that referenced this pull request Jan 4, 2021
* Revert "Fix usage of struct tags for config (#203)"

This reverts commit 8d1e696.

* Revert "provide default config for logging (#183)"

This reverts commit 4b21cdc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants