-
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
Unable to load module / resolve FQCN for module on initial run of ansible-lint #4398
Labels
Comments
#4402 is likely to fix that. Either update ansible-compat manually and test again or wait till we make the next linter release and check if this is sorted. |
Hi @ssbarnea - Tested the latest
Please let me know how I can assist further with troubleshooting this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Invoking ansible-lint
24.9.2
on my example collection, ansible-lint shows warnings about being unable to load module and resolve FQCN for a dependent collection module:In this example, it's
community.general.pip_package_info
:The dependent collection is successfully installed to the ansible-compat cache during the initial run:
This only happends on the first run of ansible-lint, once the
~/.cache/ansible-compat/
is established, the warning disappears. This is not ideal when runningansible-lint
in one-shot scenarios such as a CI/CD pipeline.Issue Type
OS / ENVIRONMENT
ansible-lint 24.9.2 using ansible-core:2.18.0 ansible-compat:24.9.1 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.12
STEPS TO REPRODUCE
Desired Behavior
No warnings are shown and the module and FQCN are resolved.
Actual Behavior
Minimal repro example:
The text was updated successfully, but these errors were encountered: