fleet/it-and-security
Jordan Montgomery 10c73cb110
Fix homebrew wine install (#32505)
Fixes #32504 

Homebrew has removed the ability to install via a local .rb file. For
context see the PR here: https://github.com/Homebrew/brew/pull/20414 .
Also the long list of PRs and commits referencing can give you some idea
of how others are solving this

We have a few different options we can take.

We can use the usual homebrew method of doing an install
wine-stable@[version] but this does not support us installing a version
referenced by a commit SHA, rather we just get to choose a specific
semver.

We can set EVs normally intended for use only by homebrew developers.
The actual Homebrew developers have strongly cautioned against this as
it has more side effects than simply allowing local package installs.

Finally, we can take the method suggested by the Homebrew developers,
which I have done here, of creating a local tap containing our specified
Wine version's cask file and installing from it. This works well in
local testing and I think has the fewest downsides while maintaining the
reference to a specific immutable version.

# Checklist for submitter
## Testing

- [x] QA'd all new/changed functionality manually

Fixed CI run here:
https://github.com/fleetdm/fleet/actions/runs/17407514780/job/49415787748
2025-09-02 11:05:46 -04:00
..
lib Fix homebrew wine install (#32505) 2025-09-02 11:05:46 -04:00
teams Revert "Update company-owned-mobile-devices.yml" (#32372) 2025-08-27 13:55:53 -05:00
default.yml Revert "Change Slack to pkg install" (#32207) 2025-08-22 09:56:41 -05:00