-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix the homebrew module failing because of warnings #8406
Fix the homebrew module failing because of warnings #8406
Conversation
5e0a60c
to
bc4c8e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! Please add a changelog fragment. Thanks!
Please note that the tests fail in https://github.com/ansible-collections/community.general/blob/main/tests/integration/targets/homebrew/tasks/docker.yml#L27 It's probably best to simply remove the whole block https://github.com/ansible-collections/community.general/blob/main/tests/integration/targets/homebrew/tasks/docker.yml#L15-L27. CC @kitizz |
You're right. That test now doesn't make any sense. And probably the whole I also added the changelog fragment. Forgot to commit it the first time... |
85d5d6a
to
d77ad2e
Compare
I think it's still good to have it, so you can ensure that it won't fall back to casks if a formula of that name does not exist. Also it's probably a good idea to change the default for that option at some point, so that this module will only install formulas, and homebrew_cask only casks. |
d77ad2e
to
2196dbf
Compare
Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes ansible-collections#8229 ansible-collections#7044
2196dbf
to
0abb8c6
Compare
So the general direction is to use this module for installing formulae and the |
To be honest, I'm not sure. It sounded to me like more folks argumented for that than for using the same module for everything. But I'm not actively monitoring this module and the discussions about it (I don't even use it), so 🤷 |
In any case, I plan to merge this latest on Monday so it makes it into 9.0.1 for Ansible's 10.0.0rc1. |
Awesome. Thx for being very responsive 👌
…On Fri, May 24, 2024, 22:03 Felix Fontein ***@***.***> wrote:
In any case, I plan to merge this latest on Monday so it makes it into
9.0.1 for Ansible's 10.0.0rc1.
—
Reply to this email directly, view it on GitHub
<#8406 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO34LJSVK4VZ24EUEKCOUDZD6MIHAVCNFSM6AAAAABIEK7NTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGI3TQOJYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Backport to stable-8: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 43cb5a0 on top of patchback/backports/stable-8/43cb5a0d54856f1f09026e476a5b8ee03b44cf0b/pr-8406 Backporting merged PR #8406 into main
🤖 @patchback |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8425 🤖 @patchback |
Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes #8229 #7044 Co-authored-by: Strahinja Kustudic <[email protected]> (cherry picked from commit 43cb5a0)
@kustodian thanks for fixing this! |
…g because of warnings (#8425) Fix the homebrew module failing because of warnings (#8406) Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes #8229 #7044 Co-authored-by: Strahinja Kustudic <[email protected]> (cherry picked from commit 43cb5a0) Co-authored-by: Strahinja Kustudic <[email protected]>
will 9.x include the fix? |
9.0.1 (to be released later today) will include it. |
9.6.1 ? |
…ons#8406) Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes ansible-collections#8229 ansible-collections#7044 Co-authored-by: Strahinja Kustudic <[email protected]> (cherry picked from commit 43cb5a0)
community.general 9.0.1 just got released. You seem to refer to Ansible version numbers. Ansible 9.x.y includes community.general 8.x.y; the next Ansible 9 release is 9.7.0, which would include the next community.general 8.6.y bugfix release (very likely 8.6.2). Right now this bugfix hasn't been backported to the stable-8 branch (the automatic backporting didn't work: #8406 (comment)). I'll try to manually backport it so it will get included, the conflict likely comes from tests. |
I see, yes I was talking about ansible itself. So 9.7.0 is the candidate to include the fix, got it. |
#8429) Fix the homebrew module failing because of warnings (#8406) Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes #8229 #7044 Co-authored-by: Strahinja Kustudic <[email protected]> (cherry picked from commit 43cb5a0) Co-authored-by: Strahinja Kustudic <[email protected]>
…ons#8406) Instead of checking if there is an error message, which can also be a warning, we now check the return code. This commit fixes ansible-collections#8229 ansible-collections#7044 Co-authored-by: Strahinja Kustudic <[email protected]>
Instead of checking if there is an error message, which can also be a warning, we now check the return code.
This commit fixes #8229 #7044
SUMMARY
Fixes #8229
Fixes #7044
ISSUE TYPE
COMPONENT NAME
homebrew