Open gionn opened 6 months ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @Akasurde @danieljaouen @enriclluelles @indrajitr @kyleabenson @martinm82 click here for bot help
The problem is the >=
in the version output. The code currently treats that as part of the version.
@felixfontein I can raise a PR to extract the version via r"(\d+\.\d+\.\d+)"
in https://github.com/ansible-collections/community.general/blob/main/plugins/modules/homebrew_cask.py#L443 or else?
@gionn you can, but you should also add some code that checks for >=
and emits a warning that the version detection might yield a wrong result.
Having the same issue with:
brew --version
Homebrew 4.3.7-dirty
Summary
When trying to install some casks via https://github.com/geerlingguy/ansible-collection-mac, I am getting a failure very similar to https://github.com/ansible-collections/community.general/issues/6842
homebrew is installed via git: https://github.com/geerlingguy/ansible-collection-mac/blob/master/roles/homebrew/tasks/main.yml#L47
should make sense that
homebrew_cask
support homebrew checked out from git - if this is the culprit?Issue Type
Bug Report
Component Name
homebrew_cask
Ansible Version
Community.general Version
Configuration
OS / Environment
MacOSX
Steps to Reproduce
Expected Results
Cask being installed without issues
Actual Results
Code of Conduct