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

Avoid duplicating molecule requirements.yml files #1521

Merged
merged 3 commits into from Apr 19, 2021

Conversation

apatard
Copy link
Contributor

@apatard apatard commented Apr 7, 2021

When running ansible-lint on roles with molecule scenarii, it will
run syntax-check on the scenarii but won't find the needed roles
(if any). The current solution is to write a requirements.yml file
in the top of the directory merging all molecule//requirements.yml files
but it's duplication and create an extra file only to get ansible-lint
playbook check working.
As a solution, look for molecule/
/requirements.yml and install
dependencies from them too.

Signed-off-by: Arnaud Patard apatard@hupstream.com

…l files

When running ansible-lint on roles with molecule scenarii, it will
run syntax-check on the scenarii but won't find the needed roles
(if any). The current solution is to write a requirements.yml file
in the top of the directory merging all molecule/*/requirements.yml files
but it's duplication and create an extra file only to get ansible-lint
playbook check working.
As a solution, look for molecule/*/requirements.yml and install
dependencies from them too.

Signed-off-by: Arnaud Patard <apatard@hupstream.com>
@ssbarnea ssbarnea changed the title src/ansiblelint/prerun.py: Avoid duplicating molecule requirements.yml files Avoid duplicating molecule requirements.yml files Apr 8, 2021
Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks ok to me but for this one I want to see more reviews, especially from molecule users.

@ssbarnea ssbarnea enabled auto-merge (squash) April 19, 2021 08:30
@ssbarnea ssbarnea merged commit f596ddc into ansible:master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants