-
Notifications
You must be signed in to change notification settings - Fork 331
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
php-versions role name was just changed again #2622
Comments
@geerlingguy @awcrosby is working on a fix for this today. |
If a user imports a new standalone role, we want to enforce the usage of underscores not dashes in the role name, so it is easier to move that role to a collection. We also want to support a user’s ability to change a role name by setting the meta/main.yml
But for this particular issue… we shouldn’t break existing roles. So we are planning to add a new logic check to prevent this for existing roles. Regarding |
@awcrosby - Thank you! That would be a huge help, and for |
@geerlingguy a database change has updated "php_versions" -> "php-versions" - so the page and installs should function. We'll let you know when it is safe to import again with the meta/main.yml |
Re-opening this until fix is deployed to production |
@geerlingguy this fix has been deployed to production, I kicked off an import of |
@awcrosby - Woohoo, thanks! I'll test it out on another role too :) Edit: Worked! |
See: #2622 (comment) +label: docsite_pr
Bug Report
SUMMARY
I'm trying to update my role so it works with ansible-lint 5.x, and that version requires standalone roles to have a valid
role_name
in themeta/main.yml
file.So I added that value to my
php-versions
role (which was here: https://galaxy.ansible.com/geerlingguy/php-versions), and imported it on Galaxy.I saw in the import task output:
And indeed, the role has vanished from the old URL and is not installable when requiring
geerlingguy.php-versions
anymore.I guess I'll have to figure out some workaround to get ansible-lint working, but in the mean time, do you know if the ability to set a
role_name
in the meta/main.yml file and it not blow out the old name be fixed, or should I just not use that feature and try to work with the ansible-lint maintainer to figure out some other way of supporting standalone Galaxy roles?The role has a quarter-million downloads and is used by thousands of developers in the PHP ecosystem... I really don't want to break their workflows for too long.
STEPS TO REPRODUCE
EXPECTED RESULTS
The role should not change names replacing dashes with underscores.
ACTUAL RESULTS
The old role is wiped out and moved to an entirely new name, and
ansible-galaxy
installs for the old role name completely fail (without even a redirect to the new role name).Related: #2393
The text was updated successfully, but these errors were encountered: