-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
No collections requirements file found #1144
Comments
I have the same problem since the update today. The reading of the Collections path has been changed. It is no longer searched globally for collections/requirements.yml, but in the folder where the playbook is located. In my case this gives a big chaos, because I have structured my playbooks cleanly in folders and now I have to create many collections/requirements.txt files.
Sure, the advantage is that you only have to install the Collections that are also needed for this Playbook. For larger projects, however, it is total chaos. |
The problem is here: Whereas Roles looks like: The role implementation does this correctly and the collections implementation should be changed to look at the base of the project/repository then 'collections/requirements.yml'. |
Until this is fixed my current workaround is to create symlinks that point to |
Any workaround? I also faced the same issues. |
This still doesn't work for me. |
This changeset provides support to find `ansible-galaxy` collection `requirements.yml` relative to repo path, in the `collections/` directory. This supports inventory organisations where only one requirements.yml is set up for the entire repo. This partially resolves issues reported here: semaphoreui#1144
@Ye-Min-Tun FWIW I've implemented something similar in my MR to resolve this issue. |
@andreas-marschke Sure sir. I resolved this by adding a requirement.yml file inside collection directory. |
big issue causing me much pain please fix |
@pydlv You just need to add requirements.yml file (with the collections you need to install) under the collections directory of your workspace. |
At now (in 2.8.90) "right path" is In my project tree it looks as:
I think was best solution search requirements.yml in all popular places:
|
Fully agree! But probably reverse the order, and use the first one found ("most specific one")? |
just for the record: i'm working around this like this.
|
yea you would need to put a collections/requirements.yml folder in the same path where the playbook you are running is. |
File exists, however semaphore cant seem to find it
The text was updated successfully, but these errors were encountered: