Skip to content

Overriding config file with another config before applying CLI overrides? #2833

Answered by odelalleau
stwerner97 asked this question in Q&A
Discussion options

You must be logged in to vote

I think a possible solution would be to make the extra config the primary config and add a defaults section to it that includes the other config's values. This is, however, not possible for me, as I cannot change the extra config file or make it the primary config.

Yes that would indeed be the "normal" way to achieve this.

Alternatively, you could append your extra config to the default list (e.g. +extra=extra_config), using the #@package _global_ directive to override the root config and this config found under conf/extra/extra_config.yaml (you might need to modify the config search path to find it if you can't put it in the base conf folder).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stwerner97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants