-
Notifications
You must be signed in to change notification settings - Fork 664
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
galaxy[tags] does not align between ansible-lint and galaxy-importer #4409
Comments
@minsis Thanks for opening this! We've added this to our roadmap. The implementation should be very straightforward, so if you or anyone would like to open a patch for it, we're happy to review. |
I want to add that |
Also another notable mention is galaxy-import also validates the character length of a tag which I guess I will also add to my patch. |
@alisonlhart I wanted to get an opinion on adding some addtional validations to the Since JSON schema support some of the additional work I'm adding I'm wondering if I should add it there. When it's added my tests are failing on both |
Summary
The galaxy-importer library has some additional regex checks on the tags attribute that ansible-lint is missing.
In galaxy-importer you can see a regex is defined for tags where ansible-lint does not:
https://github.com/ansible/galaxy-importer/blob/master/galaxy_importer/constants.py#L47
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Create basic galaxy.yml file:
And run
ansible-lint galaxy.yml
ansible-lint galaxy.yml
However when importing into galaxy there is a failure on
tag-3
Desired Behavior
ansible-lint should fail on
tag-3
Actual Behavior
ansible-lint passes validation
The text was updated successfully, but these errors were encountered: