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

Add Ability to Chain Config Files Together #2735

Closed
FelicianoTech opened this issue Nov 26, 2016 · 3 comments
Closed

Add Ability to Chain Config Files Together #2735

FelicianoTech opened this issue Nov 26, 2016 · 3 comments

Comments

@FelicianoTech
Copy link
Contributor

FelicianoTech commented Nov 26, 2016

It is very useful to have a base or main config file and then separate config files that you chain together. An example of this would be environment specific config files for deployment. This is how it is done in a Jekyll project I work with:

jekyll build --config _config.yml,_config_production.yml

This would allow specific variables to be set only when building for production (and not local testing builds). It looks like Viper itself only supports one config file at a time so we'd need to implement another instance?

I found a forum post with the same request: https://discuss.gohugo.io/t/can-you-chain-multiple-configs-together/1278

@bep
Copy link
Member

bep commented Nov 26, 2016

It looks like Viper itself only supports one config file at a time so we'd need to implement another instance?

We should update Viper to support multiple files. Viper is a @spf13 project, too, so we have commit access :-)

@bep
Copy link
Member

bep commented Aug 17, 2017

Fixed in #3532

@bep bep closed this as completed Aug 17, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants