-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
Problem Description:
https://forum.ansible.com/t/resolving-dependencies-installing-collections/1277
utoddl[Todd Lewis|https://forum.ansible.com/u/utoddl]
1
8h
I was building a new release of a collection on Saturday with the following in galaxy.yml:
dependencies:ansible.utils: '>=2.6.1'
That built just fine, but when updating projects that use this new release (ansible-galaxy collection install -r collections/requirements.yml -p ./collections/ --force-with-deps), then ansible-galaxy complained that it couldn’t resolve the dependency on ansible.utils. (Sorry, I don’t have the exact wording.) I fought it for a couple of hours trying different things, and finally worked around the issue by removing the dependency thus:
dependencies: {}
After that, updates of the projects which use the new release of my collection worked.
Clearly this is not an acceptable work-around. I though it was something I had broken, but seeing the flurry of issues with galaxy-ng it’s probably related and should be reported.
Edit: This was all with “ansible [core 2.14.7]”.
Our production is toast since the galaxy_ng switch.
{{Starting galaxy collection install process
Process install dependency map
ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements:
- kubernetes.core:2.2.0 (direct request)}}
Edit: Here’s another example from Saturday September 30 around 5:16:21 PM EDT.
{{ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements:
- ansible.utils:>=2.6.1 (dependency of mw.cc:1.0.2)}}
This was the one I mentioned in the original post where we had to remove the dependencies in the galaxy.yml to get projects to update with it.