-
Notifications
You must be signed in to change notification settings - Fork 329
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
ansible-galaxy does not install versions with "+" (build metadata) by default #2137
Comments
This filtering is happening on the client. From ansible/galaxy/collection.py from distutils.version import LooseVersion, StrictVersion
...
resp = api.get_collection_versions(namespace, name)
# Galaxy supports semver but ansible-galaxy does not. We ignore any versions that don't match
# StrictVersion (x.y.z) and only support pre-releases if an explicit version was set (done above).
versions = [v for v in resp if StrictVersion.version_re.match(v)] On re.compile('^(\\d+) \\. (\\d+) (\\. (\\d+))? ([ab](\\d+))?$', re.VERBOSE|re.ASCII) |
I think this means I would have to use version numbers like |
Yeah, the Galaxy server does not accept a version string of
|
I found ansible/ansible#64905 that provides more information about this. The reason that the I will continue the discussion there. |
Bug Report
SUMMARY
I've uploaded Git snapshots of my collection to Ansible Galaxy. I'm using the
+
sign in my version number as described in the semver documentation.My
galaxy.yml
looks like this:I cannot install this, version, though, unless I specify the version number on the command-line.
STEPS TO REPRODUCE
+
" sign. For example:0.0.159+git.eb835b03
ansible-galaxy
on the command-line.EXPECTED RESULTS
I should be able to install this version with
ansible-galaxy collection install ktdreyer.koji_ansible
, without specifying a version number.ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: