l3ender / nexus-repository-ansiblegalaxy

A Nexus Repository 3 plugin that allows usage of Ansible Galaxy repositories.
30 stars 12 forks source link

Cannot install a collection (wrong hash) when there are multiple versions available in hosted galaxy repository. #15

Open Ythogtha opened 1 year ago

Ythogtha commented 1 year ago

cc @DarthHater @bhamail @l3ender

Ythogtha commented 1 year ago

As a workaround, one could setup a galaxy-proxy repository alongside the galaxy-hosted, and use the galaxy-hosted as source for the galaxy-proxy. Things looks like they are working as they should with this somewhat convoluted setup.

Edit: Turns out I was wrong, the proxy suffers the same issue as the hosted it refers to, hence no workaround.

tree4125 commented 1 year ago

I ran into the same issue, just created a pull request to fix it. the issue was that the endpoint wasn't filtering on version so the query was returning all versions and the for loop right after was just grabbing the first item and breaking out of the loop.