Skip to content

Fix homebrew wine install#32505

Merged
JordanMontgomery merged 1 commit intomainfrom
brew-wine-fix
Sep 2, 2025
Merged

Fix homebrew wine install#32505
JordanMontgomery merged 1 commit intomainfrom
brew-wine-fix

Conversation

@JordanMontgomery
Copy link
Member

@JordanMontgomery JordanMontgomery commented Sep 2, 2025

Fixes #32504

Homebrew has removed the ability to install via a local .rb file. For context see the PR here: Homebrew/brew#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

  • QA'd all new/changed functionality manually

Fixed CI run here: https://github.com/fleetdm/fleet/actions/runs/17407514780/job/49415787748

@JordanMontgomery JordanMontgomery marked this pull request as ready for review September 2, 2025 14:52
@JordanMontgomery JordanMontgomery merged commit 10c73cb into main Sep 2, 2025
24 of 26 checks passed
@JordanMontgomery JordanMontgomery deleted the brew-wine-fix branch September 2, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test-packaging failing due to wine install failure

3 participants