Skip to content

collection: ansible-lint does not like latest in requirements.yml #883

@berndfinger

Description

@berndfinger

I tested using ansible-lint versions 24.9.0 and 24.9.2.

The version of requirements.yml producing this error contains:

  - name: community.general
    version: latest
    type: galaxy

The error message when running ansible-lint on the collection is:

ERROR! Unexpected Exception, this is probably a bug: Non integer values in LooseVersion ('latest')

The version of requirements.yml not producing this error contains:

  - name: community.general
    version: '>=9.5.0'
    type: galaxy

Note: The collection community.general version 9.5.0 is currently the latest one and has been published on Ansible Galaxy 23 days ago, see https://galaxy.ansible.com/ui/repo/published/community/general/.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions