-
Notifications
You must be signed in to change notification settings - Fork 665
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
ansible-lint should support installing pre-release versions of collection dependencies #3686
Comments
I do think that this might be an ansible-core bug as I am able to reproduce it with ansible-galaxy itself:
@sivel @bcoca Any hints about this?
I also observed ansible/ansible#79109 on core but I am not sure if that is the cause. I added the debug commands and I seen:
|
Arguably a bug, because it results in a traceback, but ultimately the problem is that installing collections from git causing issues by not meeting the requirements of dependency resolution. Although Feel free to file an issue regarding the traceback. |
That is a problem from devtools point of view because:
So while I see someone using Even if we add configurable options for adding these arguments, we will have to add them in both ansible-lint and molecule and we will be facing users that keep getting installation errors due to not knowing about these hacks. Anyone having better ideas on how to address this issue? |
So i have code that currently fixes the current bug, but still returns an error about unmet dependencies, current bug raises an error in middle of raising that error. At this point you would have to either fix the dependency issue or enable |
I have a PR that would with the general install issue (negating the need for --pre or --no-deps): https://github.com/ansible/ansible/pull/79112/files (At least, I think, testing with the example given here #3686 (comment)). Let me try to dust that off and simplify it. As far as I remember, that doesn't fix the buggy error handling though. |
Summary
The ansible-lint action should support installation of pre-release versions of collections using the
--pre
flag. For example, when using the ansible/ansible-lint@v6.18.0 action in this PR redhat-cop/cloud.aws_ops#84, it should successfully install theamazon.aws
andcommunity.aws
dependencies, but it fails as showed below.Issue Type
OS / ENVIRONMENT
ansible-lint --version
STEPS TO REPRODUCE
Desired Behavior
Possible security bugs should be reported via email to
security@ansible.com
Actual Behavior
Full log https://github.com/redhat-cop/cloud.aws_ops/actions/runs/5965427292/job/16182852719?pr=84#step:3:759
The text was updated successfully, but these errors were encountered: