Skip to content
Snippets Groups Projects
Unverified Commit a867e78f authored by Mike McQuaid's avatar Mike McQuaid
Browse files

uses_from_macos: fix force_homebrew_on_linux behaviour.

Otherwise the dependencies are read incorrectly on Linux when we're
trying to analyse Homebrew.
parent 015bdf4b
No related branches found
No related tags found
No related merge requests found
# typed: false
# frozen_string_literal: true
# The Library/Homebrew/extend/os/software_spec.rb conditional logic will need to be more nuanced
# if this file ever includes more than `uses_from_macos`.
class SoftwareSpec
undef uses_from_macos
......
# typed: strict
# frozen_string_literal: true
if OS.linux?
require "extend/os/linux/software_spec"
elsif OS.mac?
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment