Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
0cd84274
Unverified
Commit
0cd84274
authored
6 years ago
by
Misty De Meo
Browse files
Options
Downloads
Patches
Plain Diff
Diagnostic: remove need for headers on 10.14
parent
16053498
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/extend/os/mac/diagnostic.rb
+0
-12
0 additions, 12 deletions
Library/Homebrew/extend/os/mac/diagnostic.rb
Library/Homebrew/test/os/mac/diagnostic_spec.rb
+0
-13
0 additions, 13 deletions
Library/Homebrew/test/os/mac/diagnostic_spec.rb
with
0 additions
and
25 deletions
Library/Homebrew/extend/os/mac/diagnostic.rb
+
0
−
12
View file @
0cd84274
...
...
@@ -20,7 +20,6 @@ module Homebrew
check_xcode_minimum_version
check_clt_minimum_version
check_if_xcode_needs_clt_installed
check_if_clt_needs_headers_installed
]
.
freeze
end
...
...
@@ -138,17 +137,6 @@ module Homebrew
EOS
end
def
check_if_clt_needs_headers_installed
return
unless
MacOS
::
CLT
.
separate_header_package?
return
if
MacOS
::
CLT
.
headers_installed?
<<~
EOS
The Command Line Tools header package must be installed on
#{
MacOS
.
version
.
pretty_name
}
.
The installer is located at:
#{
MacOS
::
CLT
::
HEADER_PKG_PATH
.
sub
(
":macos_version"
,
MacOS
.
version
)
}
EOS
end
def
check_for_other_package_managers
ponk
=
MacOS
.
macports_or_fink
return
if
ponk
.
empty?
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/os/mac/diagnostic_spec.rb
+
0
−
13
View file @
0cd84274
...
...
@@ -32,19 +32,6 @@ describe Homebrew::Diagnostic::Checks do
.
to
match
(
"Xcode alone is not sufficient on El Capitan"
)
end
specify
"#check_if_clt_needs_headers_installed"
do
allow
(
MacOS
).
to
receive
(
:version
).
and_return
(
OS
::
Mac
::
Version
.
new
(
"10.14"
))
allow
(
MacOS
::
CLT
).
to
receive
(
:installed?
).
and_return
(
true
)
allow
(
MacOS
::
CLT
).
to
receive
(
:headers_installed?
).
and_return
(
false
)
expect
(
subject
.
check_if_clt_needs_headers_installed
)
.
to
match
(
"The Command Line Tools header package must be installed on Mojave."
)
allow
(
MacOS
).
to
receive
(
:version
).
and_return
(
OS
::
Mac
::
Version
.
new
(
"10.13"
))
expect
(
subject
.
check_if_clt_needs_headers_installed
)
.
to
be_nil
end
specify
"#check_homebrew_prefix"
do
# the integration tests are run in a special prefix
expect
(
subject
.
check_homebrew_prefix
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment