dev-cmd: disable when broken on Apple Silicon.

This is better than users getting a weird error.
This commit is contained in:
Mike McQuaid 2021-01-20 14:07:44 +00:00
parent 7242cd6474
commit 3bc31d40bd
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
5 changed files with 32 additions and 0 deletions

View File

@ -14,6 +14,8 @@ module Homebrew
Homebrew::CLI::Parser.new do Homebrew::CLI::Parser.new do
description <<~EOS description <<~EOS
Install Homebrew's Bundler gems. Install Homebrew's Bundler gems.
Not (yet) working on Apple Silicon.
EOS EOS
named_args :none named_args :none
@ -21,6 +23,9 @@ module Homebrew
end end
def install_bundler_gems def install_bundler_gems
# TODO: update description above if removing this.
raise UsageError, "not (yet) working on Apple Silicon!" if Hardware::CPU.arm?
install_bundler_gems_args.parse install_bundler_gems_args.parse
Homebrew.install_bundler_gems! Homebrew.install_bundler_gems!

View File

@ -21,6 +21,8 @@ module Homebrew
Homebrew::CLI::Parser.new do Homebrew::CLI::Parser.new do
description <<~EOS description <<~EOS
Generate Homebrew's manpages. Generate Homebrew's manpages.
Not (yet) working on Apple Silicon.
EOS EOS
switch "--fail-if-changed", switch "--fail-if-changed",
description: "Return a failing status code if changes are detected in the manpage outputs. This "\ description: "Return a failing status code if changes are detected in the manpage outputs. This "\
@ -32,6 +34,9 @@ module Homebrew
end end
def man def man
# TODO: update description above if removing this.
raise UsageError, "not (yet) working on Apple Silicon!" if Hardware::CPU.arm?
args = man_args.parse args = man_args.parse
Commands.rebuild_internal_commands_completion_list Commands.rebuild_internal_commands_completion_list

View File

@ -13,6 +13,8 @@ module Homebrew
Homebrew::CLI::Parser.new do Homebrew::CLI::Parser.new do
description <<~EOS description <<~EOS
Check for typechecking errors using Sorbet. Check for typechecking errors using Sorbet.
Not (yet) working on Apple Silicon.
EOS EOS
switch "--fix", switch "--fix",
description: "Automatically fix type errors." description: "Automatically fix type errors."
@ -42,6 +44,11 @@ module Homebrew
sig { void } sig { void }
def typecheck def typecheck
# TODO: update description above if removing this.
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2?
raise UsageError, "not (yet) working on Apple Silicon or Rosetta 2!"
end
args = typecheck_args.parse args = typecheck_args.parse
Homebrew.install_bundler_gems! Homebrew.install_bundler_gems!

View File

@ -1040,6 +1040,8 @@ Display the path where *`formula`* is located.
Install Homebrew's Bundler gems. Install Homebrew's Bundler gems.
Not (yet) working on Apple Silicon.
### `irb` [*`--examples`*] [*`--pry`*] ### `irb` [*`--examples`*] [*`--pry`*]
Enter the interactive Homebrew Ruby shell. Enter the interactive Homebrew Ruby shell.
@ -1092,6 +1094,8 @@ casks to check is taken from `HOMEBREW_LIVECHECK_WATCHLIST` or
Generate Homebrew's manpages. Generate Homebrew's manpages.
Not (yet) working on Apple Silicon.
* `--fail-if-changed`: * `--fail-if-changed`:
Return a failing status code if changes are detected in the manpage outputs. This can be used to notify CI when the manpages are out of date. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date). Return a failing status code if changes are detected in the manpage outputs. This can be used to notify CI when the manpages are out of date. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date).
@ -1322,6 +1326,8 @@ Run Homebrew's unit and integration tests.
Check for typechecking errors using Sorbet. Check for typechecking errors using Sorbet.
Not (yet) working on Apple Silicon.
* `--fix`: * `--fix`:
Automatically fix type errors. Automatically fix type errors.
* `-q`, `--quiet`: * `-q`, `--quiet`:

View File

@ -1434,6 +1434,9 @@ Display the path where \fIformula\fR is located\.
.SS "\fBinstall\-bundler\-gems\fR" .SS "\fBinstall\-bundler\-gems\fR"
Install Homebrew\'s Bundler gems\. Install Homebrew\'s Bundler gems\.
. .
.P
Not (yet) working on Apple Silicon\.
.
.SS "\fBirb\fR [\fI\-\-examples\fR] [\fI\-\-pry\fR]" .SS "\fBirb\fR [\fI\-\-examples\fR] [\fI\-\-pry\fR]"
Enter the interactive Homebrew Ruby shell\. Enter the interactive Homebrew Ruby shell\.
. .
@ -1505,6 +1508,9 @@ Only check casks\.
.SS "\fBman\fR [\fI\-\-fail\-if\-changed\fR]" .SS "\fBman\fR [\fI\-\-fail\-if\-changed\fR]"
Generate Homebrew\'s manpages\. Generate Homebrew\'s manpages\.
. .
.P
Not (yet) working on Apple Silicon\.
.
.TP .TP
\fB\-\-fail\-if\-changed\fR \fB\-\-fail\-if\-changed\fR
Return a failing status code if changes are detected in the manpage outputs\. This can be used to notify CI when the manpages are out of date\. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date)\. Return a failing status code if changes are detected in the manpage outputs\. This can be used to notify CI when the manpages are out of date\. Additionally, the date used in new manpages will match those in the existing manpages (to allow comparison without factoring in the date)\.
@ -1822,6 +1828,9 @@ Randomise tests with the specified \fIvalue\fR instead of a random seed\.
.SS "\fBtypecheck\fR, \fBtc\fR [\fIoptions\fR]" .SS "\fBtypecheck\fR, \fBtc\fR [\fIoptions\fR]"
Check for typechecking errors using Sorbet\. Check for typechecking errors using Sorbet\.
. .
.P
Not (yet) working on Apple Silicon\.
.
.TP .TP
\fB\-\-fix\fR \fB\-\-fix\fR
Automatically fix type errors\. Automatically fix type errors\.