Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve OS environment variable config overrides #6092
You can override a config key today with:
That works, but the support from Viper (the config library we use) is rather limited. We cannot do:
I.e. just change one setting inside a nested config struct.
Which is probably the reason why we in Hugo has a little too many top level config settings.
In my work with Hugo Modules I was about to add a couple more ... The thing is, adding a new setting adds complexity, but it's not too bad if we can somehow group it and document it in its own unit.
So, we need to improve this. We know the datatype for the target config entry, so we can: