Skip to content

[macOS] Pinned CMake causes some homebrew installs to fail #12912

@kintel

Description

@kintel

Description

After #12791 was rolled out, some homebrew packages fail to install.

See downstream issue here: openscad/openscad#6143

The issue seems to be that installing CMake using the local/pinned tap, confuses some packages which also depend on CMake, as they expect CMake to come from another tap, and installs scripts end up failing with:

Error: cmake is already installed from local/pinned!
Please `brew uninstall cmake` first."

With this change, we now have to brew uninstall cmake; brew untap local/pinned; brew install cmake to work around this (https://github.com/openscad/openscad/blob/3a36cb171692212b7b4037bd6c588127d42bab2b/.github/workflows/macos-tests.yml#L54-L60).

Since all of Homebrew follows their main branch, it feels weird to make CMake an exception.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Version: 20250825.1442

Is it regression?

Yes, any image version before the mentioned PR works

Expected behavior

brew install cmake shouldn't fail.

Actual behavior

brew install cmake fails:

Error: cmake is already installed from local/pinned!
Please `brew uninstall cmake` first."

Repro steps

See main description

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions