-
Notifications
You must be signed in to change notification settings - Fork 76
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
podman plugin does not download dependencies of roles when importing #209
Comments
Sorry to make you confused. I don't find any dependency in the repo you provided. Please follow this document to set the dependency for molecule, https://ansible.readthedocs.io/projects/molecule/configuration/#dependency And if the dependency is for the role itself, it should be in Let me know if it works for you |
Thanks for your answer @zhan9san! Actually I always had the dependency for my role on
I noticed on last major release of molecule it stopped installing it for some reason and I saw some changes related to dependencies such as ansible/molecule#3956. To continue with my role, I found a solution to not have a dependency at all, but I believe there could be a bug in molecule. It can be verified checking our my previous commit to this one staticdev/ansible-role-python-developer@65eb677#diff-92c74e80f0140aa012f39f58b4259dbe74401cdc9a0b84269295f480b9961809 |
There must be some misunderstand on https://github.com/ansible/molecule/pull/3956/files. It is said the Here is what I tested. $ cat molecule/default/molecule.yml
---
dependency:
name: galaxy
options:
requirements-file: requirements.yml $ cat requirements.yml
roles:
- name: staticdev.pyenv
version: 2.10.2 |
This is exactly what I had for a long time in this repo and it always worked until August. I did no change on it's test config except the upgrades on external packages such as molecule. I don't have a clue why it broke. |
I have a repo of an ansible role tested with molecule for some years now. Without a real change, my tests started failing on August 2023 when I import my role due to its dependencies on
meta/main.yml
.I see on an early step:
For some reason I get the error:
The role exists on Ansible Galaxy with correct version. This error only happens on Github Actions, but not locally. I do not really understand why, but on my path locally molecule can find
staticdev.pyenv
and can import statically. Do I need to add anything extra to install the requirements?I tried found a change in the docs for syntax of
role-file
torequirements-file
, but both syntaxes give the same failure:The text was updated successfully, but these errors were encountered: