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
a3a6a838
Unverified
Commit
a3a6a838
authored
8 years ago
by
Dominyk Tiller
Browse files
Options
Downloads
Patches
Plain Diff
mac/diagnostic: add check_for_prerelease_xcode
Closes #524. Signed-off-by:
Dominyk Tiller
<
dominyktiller@gmail.com
>
parent
a59d346f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/extend/os/mac/diagnostic.rb
+16
-0
16 additions, 0 deletions
Library/Homebrew/extend/os/mac/diagnostic.rb
with
16 additions
and
0 deletions
Library/Homebrew/extend/os/mac/diagnostic.rb
+
16
−
0
View file @
a3a6a838
...
...
@@ -4,6 +4,7 @@ module Homebrew
def
all_development_tools_checks
%w[
check_for_unsupported_osx
check_for_prerelease_xcode
check_for_bad_install_name_tool
check_for_installed_developer_tools
check_xcode_license_approved
...
...
@@ -32,6 +33,21 @@ module Homebrew
EOS
end
def
check_for_prerelease_xcode
return
if
ARGV
.
homebrew_developer?
# Running a pre-release Xcode on a pre-release OS is expected
# and likely to cause less problems than a stable Xcode will.
return
if
OS
::
Mac
.
prerelease?
return
unless
MacOS
::
Xcode
.
installed?
return
unless
MacOS
::
Xcode
.
prerelease?
<<-
EOS
.
undent
You are using a pre-release version of Xcode.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
EOS
end
# TODO: distill down into single method definition a la BuildToolsError
if
MacOS
.
version
>=
"10.9"
def
check_for_installed_developer_tools
...
...
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