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

Fix merging context/datasources config #1350

Merged
merged 5 commits into from
Apr 27, 2022

Conversation

paddycarey
Copy link
Contributor

This PR fixes config merging when context/datasources are provided on the command line but not in the config file.

When a config file is used which doesn't contain context or datasources keys, those values are parsed as nil. Then when config.Config.MergeFrom is called (and subsequently config.mergeDataSources) the application panics as it's trying to write to a nil map.

@hairyhenderson
Copy link
Owner

Thanks @paddycarey!

@hairyhenderson
Copy link
Owner

Sorry for the delay - been having some CI trouble 😅

@hairyhenderson hairyhenderson disabled auto-merge April 27, 2022 17:46
@hairyhenderson hairyhenderson enabled auto-merge (rebase) April 27, 2022 17:47
@hairyhenderson hairyhenderson merged commit df96eb3 into hairyhenderson:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants