cli/args: --HEAD implies building from source

This commit is contained in:
Rylan Polster 2020-12-27 13:12:07 -05:00 committed by Mike McQuaid
parent 07f9f6c42c
commit 224c7f44e2
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -69,7 +69,7 @@ module Homebrew
end
def build_from_source_formulae
if build_from_source? || build_bottle?
if build_from_source? || HEAD? || build_bottle?
named.to_formulae_and_casks.select { |f| f.is_a?(Formula) }.map(&:full_name)
else
[]