brew/Library/Homebrew/extend/os/software_spec.rb
Mike McQuaid a867e78f62
uses_from_macos: fix force_homebrew_on_linux behaviour.
Otherwise the dependencies are read incorrectly on Linux when we're
trying to analyse Homebrew.
2020-11-09 15:23:35 +00:00

10 lines
301 B
Ruby

# typed: strict
# frozen_string_literal: true
# This logic will need to be more nuanced if this file includes more than `uses_from_macos`.
if OS.mac? || Homebrew::EnvConfig.force_homebrew_on_linux?
require "extend/os/mac/software_spec"
elsif OS.linux?
require "extend/os/linux/software_spec"
end