21147 Commits

Author SHA1 Message Date
Michka Popoff
5e91802470 checksum: simplify, use only sha256
We use only one sha type right now.

Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Seeker
dea4eb52b8 git_repository: Use Utils::Git.git instead of plain "git" 2021-01-07 11:45:11 -08:00
Seeker
02c207a9ec git_repository: replace compound unless with equivalent if 2021-01-07 11:45:11 -08:00
Seeker
41e0619de8 utils: add git_repository 2021-01-07 11:45:11 -08:00
Seeker
1395259ad6 bump-*-pr: check existing PRs for exact file match 2021-01-07 09:15:42 -08:00
Mike McQuaid
4e79550b03
Merge pull request #10236 from MikeMcQuaid/cask-audit-quieter
audit: quieten down and make casks audit consistent with formulae.
2021-01-07 15:53:59 +00:00
hyuraku
d2c0fdfbcc cmd/info: refactor-github_info 2021-01-08 00:14:33 +09:00
Mike McQuaid
95ec62adae
Merge pull request #10250 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6198
build(deps): bump sorbet from 0.5.6189 to 0.5.6198 in /Library/Homebrew
2021-01-07 14:23:37 +00:00
Markus Reiter
41a8fa4efc
Merge pull request #10235 from reitermarkus/livecheck-header
Don't preprocess URL for `:header_match` strategy.
2021-01-07 15:01:31 +01:00
Mike McQuaid
d8a5e467e8
audit: quieten down and make casks audit consistent with formulae.
The current casks audit is very noisy in the no-op case (i.e. no errors)
https://github.com/Homebrew/brew/pull/10234/checks?check_run_id=1655630568#step:15:7

This means when there are errors and you're querying all casks it's
pretty hard to quickly identify the problems.

This commit silences the `passing`, `warning` and header/summary output
when you're querying all casks (rather than a specific cask or tap).

This is more consistent with `brew audit` for formulae which is silent
unless there are audit failures.
2021-01-07 13:31:14 +00:00
BrewTestBot
014985fc5c Update RBI files for sorbet. 2021-01-07 13:29:35 +00:00
BrewTestBot
25f50caa3c brew vendor-gems: commit updates. 2021-01-07 13:28:47 +00:00
Mike McQuaid
dc072afdb1
rubocop: add shim and command.
Add a shim and a command that can be used to easily add a single
directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it
automatically install, configure and run `rubocop` so you can use it
for in-editor integrations.
2021-01-07 13:27:17 +00:00
dependabot[bot]
1139032b24
build(deps): bump sorbet from 0.5.6189 to 0.5.6198 in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6189 to 0.5.6198.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-07 13:13:10 +00:00
Mike McQuaid
32fd7039a9
Merge pull request #10214 from Homebrew/dependabot/bundler/Library/Homebrew/nokogiri-1.11.0
build(deps): bump nokogiri from 1.10.10 to 1.11.0 in /Library/Homebrew
2021-01-07 13:04:07 +00:00
Mike McQuaid
2592e406bc
Merge pull request #10237 from MikeMcQuaid/homepage-blank-corrector-fix
rubocops/homepage: don't attempt to auto-correct an empty string.
2021-01-07 09:51:30 +00:00
Mike McQuaid
8af4895479
Improve submitted analytics data
- Use default `custom-prefix` label on macOS ARM (as `/usr/local` is
  not the default).
- Add architecture (or Rosetta) to analytics event label.
- Don't send minor versions on Big Sur.
- Remove defunct `HOMEBREW_OSX_VERSION` reference.
2021-01-07 09:28:40 +00:00
BrewTestBot
e5712fc6d3 sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-01-07 02:05:08 +00:00
Mike McQuaid
051fba341f
rubocops/homepage: don't attempt to auto-correct an empty string.
Fixes #10232
2021-01-06 13:53:15 +00:00
Markus Reiter
52daccb365 Don't preprocess URL for :header_match strategy. 2021-01-06 12:34:30 +01:00
BrewTestBot
465cd9c9ca Update RBI files for nokogiri. 2021-01-06 09:27:08 +00:00
BrewTestBot
f24d64d2d0 brew vendor-gems: commit updates. 2021-01-06 09:26:21 +00:00
Mike McQuaid
dad7dc6a14
Merge pull request #10196 from souleater7/delete-devel
Delete references to devel
2021-01-06 09:15:52 +00:00
Mike McQuaid
b19c2359f9
Merge pull request #10220 from SeekingMeaning/livecheck-typechecking
livecheck: enable Sorbet type checking
2021-01-06 09:14:33 +00:00
Mike McQuaid
482dadabc0
Merge pull request #10221 from SeekingMeaning/bump-formula-nil
bump-formula-pr: use `nil?`/`blank?`/`present?` in if statements
2021-01-06 09:14:19 +00:00
Mike McQuaid
4db2038572
Merge pull request #10224 from MikeMcQuaid/git_version_quiet
utils/git: quieter git --version.
2021-01-06 09:11:50 +00:00
Mike McQuaid
d617b6d348
Merge pull request #10219 from alebcay/patch-audit-on-coretap-only
formula_auditor: prohibit patches in new core formulae only
2021-01-06 09:11:28 +00:00
Mike McQuaid
a1c97c8f3b
utils/git: quieter git --version.
Let's avoid printing this unless `--debug` (to avoid
`brew bundle check -v` outputting this).

Fixes https://github.com/Homebrew/homebrew-bundle/issues/865
2021-01-06 08:51:11 +00:00
dependabot[bot]
3faf0cb349
build(deps): bump nokogiri from 1.10.10 to 1.11.0 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.10 to 1.11.0.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.10...v1.11.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-06 07:36:13 +00:00
souleater7
98e7538679
Fix style test in lines_spec.rb 2021-01-05 15:22:26 -08:00
Seeker
790d807b97 livecheck: enable Sorbet type checking 2021-01-05 14:16:54 -08:00
Seeker
64d312c356 bump-formula-pr: use nil?/blank?/present? in if statements 2021-01-05 09:15:03 -08:00
Seeker
924d42e4cb cask: add DSL methods to RBI file 2021-01-05 09:11:31 -08:00
Caleb Xu
199c64d8c2 formula_auditor: prohibit patches in new core formulae only 2021-01-05 09:47:06 -05:00
Mike McQuaid
d278e87d57
Merge pull request #10211 from SeekingMeaning/ast-stanza-text
utils/ast: add `stanza_text` helper function
2021-01-05 11:01:09 +00:00
Mike McQuaid
a805a5ea16
Merge pull request #10197 from carlocab/bottle-error
formula_installer: tweak bottle error message
2021-01-05 09:42:31 +00:00
Mike McQuaid
3e59c0becd
Merge pull request #10198 from mistydemeo/superenv_filter_out_usr_local_if_necessary
superenv: filter out /usr/local on ARM if necessary
2021-01-05 08:51:05 +00:00
Mike McQuaid
d526772d04
Merge pull request #10192 from Rylan12/ubuntu-latest-fixes
style shellcheck fixes (in preparation for ubuntu-20.04)
2021-01-05 08:40:21 +00:00
Michka Popoff
3ae28cee9f
Merge pull request #10207 from iMichka/gperf
gperf: add to uses_from_macos allowlist
2021-01-05 07:59:29 +01:00
Misty De Meo
2a33de7a10
superenv: filter out /usr/local on ARM if necessary 2021-01-04 20:57:16 -08:00
Michka Popoff
d820c9a919
Merge pull request #10203 from SeekingMeaning/bottle-old-checksums
bottle: add `old_checksums` helper function
2021-01-05 01:42:44 +01:00
carlocab
beeb7faaba
formula_installer: tweak no-bottle error message
Follow up to #10183.

This improves the error message displayed when `formula.pour_bottle?` is
false.

Before:

    ❯ brew install python@3.8
    Error: python@3.8: no bottle available!
    The bottle needs the Apple Command Line Tools to be installed.
      You can install them, if desired, with:
        xcode-select --install
    You can try to install from source with e.g.
      brew install --build-from-source python@3.8
    Please note building from source is unsupported. You will encounter build
    failures with some formulae. If you experience any issues please create pull
    requests instead of asking for help on Homebrew's GitHub, Twitter or any other
    official channels.

After:

    ❯ brew install python@3.8
    Error: python@3.8: the bottle needs the Apple Command Line Tools to be installed.
      You can install them, if desired, with:
        xcode-select --install
    You can try to install from source with e.g.
      brew install --build-from-source python@3.8
    Please note building from source is unsupported. You will encounter build
    failures with some formulae. If you experience any issues please create pull
    requests instead of asking for help on Homebrew's GitHub, Twitter or any other
    official channels.
2021-01-04 15:53:50 +00:00
Andreas Tolfsen
317c14daa6 missing_formula: fix cask installation advice on tap migration
When an installed formula is missing and its source has migrated
to a new tap, Homebrew warns the user about this, saying:

	You can access it again by running:
	  brew tap new-name
	And then you can install it by running:
	  brew cask install new-name

Unfortunately, the "brew cask install" incantation is deprecated
and the advice won't work:

	Error: Calling brew cask install is disabled! Use brew install [--cask] instead.

This alters the advice to use the new "brew install --cask" notation,
fixing the advice presented to the user.
2021-01-04 13:09:45 +01:00
Seeker
8828b4bd68 utils/ast: add stanza_text helper function 2021-01-03 22:26:19 -08:00
Markus Reiter
4a90a5a5d6
Merge pull request #10199 from reitermarkus/check-https-content
Avoid unnecessary downloads in `audit`.
2021-01-03 00:33:27 +01:00
Michka Popoff
e0b6f4d816 gperf: add to uses_from_macos allowlist 2021-01-02 23:21:14 +01:00
Mike McQuaid
0648082d6e
Merge pull request #10193 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.9.2
build(deps): bump rubocop-performance from 1.9.1 to 1.9.2 in /Library/Homebrew
2021-01-02 14:20:59 +00:00
Markus Reiter
e5d656bcce Avoid unnecessary downloads in audit. 2021-01-02 11:09:01 +01:00
Seeker
ec841e7b62 bottle: add old_checksums helper function 2021-01-01 15:23:09 -08:00
Seeker
e5eb6a2646
Merge pull request #10190 from SeekingMeaning/bottle-keep-old
bottle: check actual bottle block contents when `--keep-old`
2021-01-01 10:47:58 -08:00