-
Notifications
You must be signed in to change notification settings - Fork 656
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
Molecule config file in {project}/.config/molecule/config.yml not found #4142
Labels
Comments
A PR that fixes this would be welcomed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
pip check
does not report any conflictsEnvironment
OS Release: Red Hat 8.9
What happened
ISSUE:
Molecule settings put into
{PROJECT_DIR}/.config/molecule/config.yml
are not found or used, but they are if I move.config/molecule/.config.yml
to my user home directory.EXPECTATIONS:
Molecule documentation states that we can put configurations into
{PROJECT_DIR}/.config/molecule/config.yml
or into~/.config/molecule/config.yml
So both options should work.EXAMPLE:
My example directory structure:
Here are the contents of
config.yml
:Here's what I see if I configure using
~/.config/molecule/config.yml
- it finds the file and the settings are used, this is good:When I remove that
~/.config/molecule/config.yml
and only have./my_project/.config/molecule/config.yml
it does not read these settings. I tried moving the .config directory to all different levels within the project dir with no luck.POSSIBLE SOLUTION
I believe the issue lies in the
find_vcs_root
function in the file util.pyAdding
, ".config"
into the dirs variable in thefind_vcs_root
function definition line seems to resolve the issue for me:I wanted to submit this as a PR as it seems fairly trivial but I am having issues getting my environment configured correctly. I apologize in advance if I did not contribute this exactly to the guidelines.
Reproducing example
No response
The text was updated successfully, but these errors were encountered: