mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
homebrew_cask: handle placeholder version from brew --version (#11849)
* homebrew_cask: handle placeholder version from brew --version When brew is run as the wrong user, git repositories may be owned by a different user, causing brew --version to output a placeholder like "Homebrew >= 4.3.0 (shallow or no git repository)" instead of the real version. The parsed version would then be lower than the 2.6.0 threshold, causing _brew_cask_command_is_deprecated() to return False and the module to use the disabled "brew cask" command syntax. Detect the ">=" prefix in the parsed version and treat it as a modern installation. Fixes #4708 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * homebrew_cask: add changelog fragment for #11849 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- homebrew_cask - fix failure when ``brew --version`` returns a placeholder version string
|
||||
(https://github.com/ansible-collections/community.general/issues/4708,
|
||||
https://github.com/ansible-collections/community.general/pull/11849).
|
||||
Reference in New Issue
Block a user