Skip to content

Casks with choices: failing to install after commit 2d33360 #22400

@jabenninghoff

Description

@jabenninghoff

brew doctor output

Your system is ready to brew.

Verification

  • I ran brew update twice and am still able to reproduce my issue.
  • My "brew doctor output" above says Your system is ready to brew or a definitely unrelated Tier message.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 5.1.13-47-gdf39236
ORIGIN: https://github.com/Homebrew/brew
HEAD: df392361c85aefd236ee5e102d2c205748341b7a
Last commit: 16 hours ago
Branch: HEAD
Core tap HEAD: 9fc7ca1f1ad4ed2923d7735bff284500ef2875ab
Core tap last commit: 22 minutes ago
Core cask tap HEAD: 247ef0809f400dcab21d11b1305fe58007c7ddca
Core cask tap last commit: 79 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CLEANUP_MAX_AGE_DAYS: 36500
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.PILRZnuqZt/org.xquartz:0
HOMEBREW_DOWNLOAD_CONCURRENCY: 32
HOMEBREW_EDITOR: /usr/bin/vim
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 16
HOMEBREW_SORBET_RUNTIME: set
HOMEBREW_USE_INTERNAL_API: set
Homebrew Ruby: 4.0.5 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.5/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 17.0.0 build 1700
Git: 2.54.0 => /usr/local/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.7.7-x86_64
CLT: 26.3.0.0.1.1771626560
Xcode: 26.3

What were you trying to do (and why)?

Installing any Cask with a choices: stanza fails with an error message indicating the choices file was not found. The brew install command runs successfully before commit 2d33360 and fails after. (tested using git checkout in /usr/local/Homebrew). Initially reported in Homebrew/homebrew-cask#265879.

What happened (include all command output)?

Installing Microsoft Teams (for example):

% brew install microsoft-teams  
==> Fetching downloads for: microsoft-teams
✔︎ Cask microsoft-teams (26106.2113.4690.1073)                                                          Verified    350.6MB/350.6MB
==> Installing Cask microsoft-teams
==> Running installer for microsoft-teams with `sudo` (which may request your password)...
Password:
installer: Package name is Microsoft Teams
installer: choices file '/private/tmp/choices20260523-27719-4uwt8k.xml' either could not be found or was malformed.==> Purging files for version 26106.2113.4690.1073 of Cask microsoft-teams
Error: Failure while executing; `/usr/bin/sudo -u root -E LOGNAME=jabenninghoff USER=jabenninghoff USERNAME=jabenninghoff -- /usr/sbin/installer -pkg /usr/local/Caskroom/microsoft-teams/26106.2113.4690.1073/MicrosoftTeams.pkg -target / -applyChoiceChangesXML /private/tmp/choices20260523-27719-4uwt8k.xml` exited with 1. Here's the output:
installer: Package name is Microsoft Teams
installer: choices file '/private/tmp/choices20260523-27719-4uwt8k.xml' either could not be found or was malformed.

What did you expect to happen?

Successful installation of Microsoft Teams.

Step-by-step reproduction instructions (by running brew commands)

brew developer on
brew update
brew install microsoft-teams

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions