galaxy fails to install role due to incompatible version formats

A user reported the following issue:

downloading role 'relayor', owned by nusenu
[WARNING]: - nusenu.relayor was NOT installed successfully: Unable to compare
role versions (v18.1.1, 0.1.0, v18.0.0, v0.3.0, v19.1.4, v19.1.0, v19.1.3,
0.2.0-rc, 0.1.0-alpha, v0.3.1, v0.3.3, v0.2.1, v19.1.2, v19.0.0, v0.3.2,
v19.1.1, v0.4.0, v18.1.0) to determine the most recent version due to
incompatible version formats. Please contact the role author to resolve
versioning conflicts, or specify an explicit role version to install.

https://github.com/nusenu/ansible-relayor/issues/204

What is the best way to solve this?

thanks,
nusenu

The problem is that you have a mix of tag formats. Specifically those that start with v and those that do not.

The tags causing issues are: 0.2.0-rc, 0.1.0-alpha

In python3, the version parsing tools that Ansible uses will not allow you to compare a string to an integer, and you get this error.

To resolve it, the offending tags would need removed, potentially creating new tags with the consistent naming.

it is strange to force people to remove past tags but thanks for the help!