-
Notifications
You must be signed in to change notification settings - Fork 200
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
Use fully qualified collection names #1567
base: master
Are you sure you want to change the base?
Conversation
5ec3a2b
to
da14524
Compare
308e6a6
to
e166ac1
Compare
e166ac1
to
32250be
Compare
This is now ready for review |
Is there a known test that checks and ensures FQCN is used that can be added to a Github Action? |
The closest I can find is https://ansible-lint.readthedocs.io/en/latest/rules/fqcn-builtins/ That will check for In the case of |
I must admit I am not a fan of That said, the PR looks good and I will not block it just because I find that rule silly ;-) |
32250be
to
7d9b182
Compare
I can follow @evgeni's reasoning what |
My preference is to default to the long notation. For one thing, it makes it a bit easier to find documentation and have confidence that I'm look at exactly the right module docs; it's also helpful for recognizing dependencies on other collections. Over time, as more projects use ansible-lint 6 or newer, it could become jarring to other contributors to see only module short names here. They may grow used to using FQCNs and submit PRs adhering to that standard. If we did not ask them to stick to short names, then we would end up in the worst case scenario -- a basically random and unplanned mixture. In the interest of avoiding a mixture of standards, it seems easier to just enable the rule and let CI enforce it so that reviewers can focus on the more important things. Also we could disable the rule in CI, but I am not sure whether there exists a simple way to enforce ansible-lint configuration in the user's local repository when that is likely going to be installed inside their venv. Anyway, I was using the long notation already in other roles I was working on, and wanted to submit some of that work here but saw that the standards were all over the place. I'm learning a new (to me) editor at the moment (kakoune, which is great) so this yak shaving was a weekend project to build skills and muscle memory with that editor, and to try to achieve some consistency between the many playbooks and roles in this repository before I start adding to them. |
No description provided.