276 Commits

Author SHA1 Message Date
Douglas Eichelberger
6f813eba13 Fix 'undefined method git_default_origin_branch?' 2023-04-17 06:32:15 -07:00
Douglas Eichelberger
b90897e280 Create git_repo attr 2023-04-15 19:35:13 -07:00
Douglas Eichelberger
8307255ce8 Update call sites 2023-04-15 19:35:13 -07:00
Douglas Eichelberger
429f23dcc6 Create GitRepoPath 2023-04-15 19:35:12 -07:00
Dustin Rodrigues
b776fb32de
change includecount to include_count for readability 2023-03-20 07:23:17 -04:00
Dustin Rodrigues
e5fba88035
use includecount argument in pluralize 2023-03-19 23:35:47 -04:00
Issy Long
8e13a6e1f4
Merge pull request #14944 from issyl0/more-rubocop-naming-method-parameter-name
rubocop: Further trim `Naming/MethodParameterName` allowlist
2023-03-11 22:59:39 +00:00
Issy Long
e9d994622e
rubocop: Drop "f" from Naming/MethodParameterName allowlist
- This either stands for "file" but more often than not "formula".
2023-03-11 00:17:27 +00:00
Douglas Eichelberger
02fd0422aa Enable typing in a few more files 2023-03-09 13:42:06 -08:00
Issy Long
f52fbaf917
rubocop: Drop "ff" from Naming/MethodParameterName allowlist
- It seems that "ff" was short for plural formula, so formulae.
2023-03-08 14:42:58 +00:00
Douglas Eichelberger
0eccc0e987 git grep -l Utils::Inflection | xargs gsed -i 's|Utils::Inflection|Utils|g' 2023-02-27 20:18:27 -08:00
Douglas Eichelberger
37015b6b08 Change to pluralize, port more call sites 2023-02-27 20:17:33 -08:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API defaults to shell 2023-02-24 21:53:08 +00:00
Mike McQuaid
da6d355c52
Merge pull request #14743 from reitermarkus/official-cask-taps
Use `OFFICIAL_CASK_TAPS` constant.
2023-02-21 23:05:32 +00:00
Markus Reiter
8a81473179
Use OFFICIAL_CASK_TAPS constant. 2023-02-21 12:39:07 +01:00
Mike McQuaid
fbdec8738d
Warn more when building from source
We warn sometimes when we tell people to build from source and it's
not supported but we don't actually warn non-developers when invoking
the various install commands so: let's start doing so.

While we're here, also update the existing messaging to reflect the fact
we're on Mastodon now too and we don't want maintainers being
individually bothered about errors either.

I've tried to balance having messages here vs. having them be so long
at the beginning of installation that they will be missed or be overly
obnoxious.
2023-02-17 16:10:38 +00:00
Mike McQuaid
1b75348ed4
Revert "show/check Homebrew branch" 2023-01-18 13:59:58 +00:00
Adrian Ho
c0331c9142 show/check Homebrew branch
Because anyone can forget they're on a different branch, and wonder
why `brew update` isn't pulling in the latest changes (https://github.com/orgs/Homebrew/discussions/4105#discussioncomment-4658869).
2023-01-12 18:20:47 +08:00
Mike McQuaid
77c0d38c35
brew style --fix 2022-12-13 11:37:06 +00:00
Krasimir Nedelchev
92c7ede025 doctor: add -u flag to suggested git stash command 2022-12-04 11:59:15 +02:00
Mike McQuaid
49bacd681e
diagnostic: remove some checks.
- Some of these are currently failing globally on GitHub Actions.
- Some(/all?) of these predate our use of the macOS sandbox,
  environment filtering, PATH filtering and pushing users much harder to
  use bottles instead of building from source
- I haven't seen a case for a long time where any of these actually
  debugged a user issue. If/when this happens: we can add a given check
  back.
- This should allow us to dramatically reduce the amount of cleanup
  that `brew test-bot` needs to do on GitHub Actions.
2022-11-29 09:21:34 +00:00
Mike McQuaid
53b1c0f48e
Strengthen "don't create issues" language
We're still getting a non-trivial number of issues from configurations
we don't support and don't plan to.

Let people know that we know their experience will not be good and what
to expect if they file issues.

Co-authored-by: Eric Knibbe <enk3@outlook.com>
2022-10-20 11:39:20 +01:00
Mike McQuaid
14629216ba
diagnostic: improve cask quarantine messaging.
I'm now getting "Unknown support status" on 12.6 and it's not obvious at
all what's outputting this and why.
2022-09-14 12:32:26 +01:00
Mike McQuaid
631db5502d
diagnostic: automatically tap homebrew/core.
Otherwise, this just dies with `Error: No available tap homebrew/core.`.
2022-08-26 12:38:03 +00:00
Bo Anderson
e78665f4f7
Replace ENV["HOME"] with Dir.home 2022-06-17 19:47:57 +01:00
Bo Anderson
40bbdc659e
Fix some Style/FetchEnvVar offences 2022-06-17 19:47:57 +01:00
Rylan Polster
89483abda9
Remove Bottle API 2022-06-14 16:06:05 -04:00
Mike McQuaid
1bb44979ee
Disable and delete code for 3.5.0
The next planned release will be 3.5.0 so let's fix things up for there.
2022-05-30 14:59:14 +01:00
Alex Balgavy
b886b2d1f7
Remove mentions of nonexistent command brew diy
The output of `brew doctor` can mention a command `brew diy`, which no
longer exists.
2022-05-06 10:22:25 -04:00
Rylan Polster
6bd507d472
Cleanup conditional
Co-authored-by: Bo Anderson <mail@boanderson.me>
2021-10-31 15:43:13 -04:00
Rylan Polster
83073c3ee6
Fix brew doctor with HOMEBREW_INSTALL_FROM_API 2021-10-31 04:11:02 -04:00
Rylan Polster
dd1a36052c
Fix brew doctor 2021-10-27 01:41:57 -04:00
ylht
75a38b7187 refactor the format 2021-07-19 10:02:19 +08:00
ylht
e5986dba6c cmd/doctor: repair xattr not find 2021-07-19 09:55:30 +08:00
hyuraku
d177d8a159 make all keg names uniq 2021-07-01 09:20:58 +09:00
hyuraku
af68ceff88 repair Diagnostic::Checks#all 2021-06-22 20:57:09 +09:00
Mike McQuaid
2395113154
diagnostic: hide some warnings on Apple Silicon.
We don't want to complain about either Intel or ARM installations of
Homebrew in `brew doctor` so check for/allow both.
2021-06-15 11:51:29 +01:00
Bo Anderson
a06d136d2c
Move Sorbet gems into an optional group 2021-06-11 08:10:30 +01:00
Adrian Ho
1cf8b43966 Unrefactor broken tap
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-02 00:11:18 +08:00
Adrian Ho
c7bbb904e8 diagnostic: add check for broken taps
Detect half-baked core taps that show up on a fairly regular basis (e.g. #11465).

The logic is simple enough: Since an improper tap wouldn't have a complete Git config, and is always somewhere below `HOMEBREW_REPOSITORY`, any Git operation would look at the Brew repo instead. We simply need to test for any of:

1. Empty tap origin
2. Empty tap HEAD
3. Tap HEAD == Brew HEAD
2021-06-01 23:16:45 +08:00
hyuraku
40b39151f9 rename the variable 2021-05-30 16:26:58 +09:00
hyuraku
bfa9938e3f repair and add cask taps 2021-05-27 21:43:08 +09:00
hyuraku
a0799bfbf9 add cask tap to Diagnostic::Checks#check_git_status 2021-05-24 23:30:46 +09:00
Bo Anderson
8ff7b58cba system_config: remove describe_java 2021-02-09 20:58:30 +00:00
EricFromCanada
6fc116318e fixes for grammar and wording 2021-01-26 16:19:47 -05:00
EricFromCanada
2ed324ebc0 use backticks around suggested input, flags, and binaries 2021-01-26 16:19:47 -05:00
EricFromCanada
cd3cb6928b indent suggested commands on subsequent line
and combine sequential puts calls
2021-01-26 15:36:44 -05:00
EricFromCanada
a427de5bee capitalization fixes
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
Seeker
b9854bd4cf rubocops: add unless_multiple_conditions 2021-01-08 10:33:54 -08:00
Rylan Polster
e04f450684 doctor: disable python symlink message 2020-12-31 10:41:38 -05:00