Closed scpeters closed 6 years ago
On Linuxbrew/brew MacOS::CLT.installed?
is set to true
.
https://github.com/Linuxbrew/brew/blob/8f5de98bcc40afe402969dff6794739979b00a09/Library/Homebrew/os/linux.rb#L22-L28
That's a hack though, and not one that I'd like to commit to Homebrew/brew.
44 formulae in Linuxbrew/core use if MacOS::CLT.installed?
. I'd rather patch these formulae to instead use if !OS.mac? || MacOS::CLT.installed?
.
Here's a PR to fix this issue: https://github.com/Linuxbrew/homebrew-core/pull/10012
I merged PR #10012, which should fix this issue!
Please fill out the issue checklist below and provide all the requested information.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Linuxbrew/homebrew-core: https://github.com/Linuxbrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?To help us debug your issue please explain:
I was trying to install
python@2
andpython
because they are dependencies of other formulae that I wanted to test (dartsim
for example).They both failed with an error
Error: uninitialized constant OS::Mac::CLT
I expected macOS settings to be ignored on linux.
brew
commands)