Skip to content

Fix homebrew wine install - #32505

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

JordanMontgomery merged 1 commit into
mainfrom
brew-wine-fix

Conversation

@JordanMontgomery

@JordanMontgomery JordanMontgomery commented Sep 2, 2025 •

Copy link
Copy Markdown
Member

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
@JordanMontgomery
JordanMontgomery deleted the brew-wine-fix branch September 2, 2025 15:05

This branch was previously deployed

1 inactive deployment
Docker Hub — bcfcc197 Deployed Sep 2, 2025 by JordanMontgomery
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