Replies: 1 comment 2 replies
-
I can reproduce the behavior you've described. @hydra.main(version_base='1.2', config_name='hyd', config_path='.') The searchpath is then computed based on what is found in the primary config. This searchpath may be overridden at the CLI, but the primary config is already loaded (or, in your case, failed to load) by the time that the CLI override is processed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found that on the command-line
--config-dir /some/dir
is not the same ashydra.searchpath=[file:///some/dir]
.If there is a top-level config file
/some/dir/hyd.yml
and my app uses@hydra.main(version_base='1.2', config_name='hyd')
, the--config-dir
works and thehydra.searchpath
fails. It fails to find the config file with ahydra.errors.MissingConfigException
.A superficial reading of https://hydra.cc/docs/advanced/search_path/ suggests that
hydra.searchpath=[file:///some/dir]
should work. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions