20163 Commits

Author SHA1 Message Date
Jonathan Chang
486e76c1f2
Merge pull request #9240 from jonchang/bintray-typed
bintray: add type signatures
2020-11-27 18:27:47 +11:00
danielnachun
7d8f6d9d22 explicitly specify CMake libdir as lib 2020-11-27 17:56:03 +11:00
Jonathan Chang
a39344e7e3 tap: read_formula_list JSON file can be an array 2020-11-27 17:45:42 +11:00
Jonathan Chang
ed73d5b635 system_command: widen type for secrets 2020-11-27 17:45:18 +11:00
Jonathan Chang
6b06716757 bintray: add type signatures 2020-11-27 17:44:46 +11:00
Jonathan Chang
5309470f28 diagnostic: check all tap branches, not just core 2020-11-27 16:21:45 +11:00
Jonathan Chang
f98736119b global: fix default prefix 2020-11-27 15:36:04 +11:00
Markus Reiter
79d6c059fc
Merge pull request #9297 from reitermarkus/brew-typecheck
Refactor `brew typecheck` and upgrade `typed` sigils.
2020-11-27 00:01:47 +01:00
Michka Popoff
d42e8c7842
Merge pull request #9310 from iMichka/cellar
bottle merge: add support for linux cellar
2020-11-26 23:31:28 +01:00
Sam Ford
9539485547
Merge pull request #9074 from vladimyr/livecheck
livecheck: refactor url preprocessing
2020-11-26 14:46:57 -05:00
Sam Ford
5a007a4ec6
livecheck: expand #preprocess_url tests more 2020-11-26 13:34:16 -05:00
Mike McQuaid
86631b4fef
Merge pull request #9292 from MikeMcQuaid/improve-zsh-completions
Improve ZSH completions handling
2020-11-26 16:55:58 +00:00
Mike McQuaid
3002c810be
Improve ZSH completions handling
- Only display the completions caveats from the current shell (assuming
  it's one of Bash, ZSH or Fish)
- If the completions location isn't in the ZSH `FPATH` then link to the
  documentation explaining how to do so.

Fixes https://github.com/Homebrew/brew/issues/8984
2020-11-26 16:08:26 +00:00
Sam Ford
417bb2ebfd
livecheck: clean up comment 2020-11-26 10:33:20 -05:00
Sam Ford
5332e877b2
livecheck: improve host string comparison 2020-11-26 10:32:55 -05:00
Sam Ford
d07590442c
livecheck: handle URI#parse URI::InvalidURIError 2020-11-26 10:31:38 -05:00
Sam Ford
1f40d84ab1
livecheck: expand #preprocess_url tests 2020-11-26 09:50:00 -05:00
Dario Vladovic
74fd700445
livecheck: fix github & gitlab url processing
- support both `github.com/downloads/<owner>/<repo>` and
  `github.s3.amazonaws.com/<owner>/<repo>` URL patterns
- support self-hosted GitLab installations (with project groups)
- support _well-known_ Gitea and Gogs instances
2020-11-26 09:30:54 -05:00
Dario Vladovic
1f103f88d0
livecheck: enable git strategy for sourcehut 2020-11-26 09:30:54 -05:00
Dario Vladovic
59adb55338
livecheck: refactor url preprocessing 2020-11-26 09:30:53 -05:00
Michka Popoff
95bf529ad2 bottle merge: add support for linux cellar
The first attempt to build and pull a formula (hello) for linux in homebrew-core
resulted in a wrong cellar line being added to the formula's bottle block.

How to test/debug this, using the 4 bottles that where built for hello:
brew bottle --merge --debug hello--2.10_1.mojave.bottle.json hello--2.10_1.x86_64_linux.bottle.json hello--2.10_1.big_sur.bottle.json hello--2.10_1.catalina.bottle.json

This command would add create the following bottle block:

  bottle do
    cellar "/home/linuxbrew/.linuxbrew/Cellar"
    sha256 "a0af7dcbb5c83f6f3f7ecd507c2d352c1a018f894d51ad241ce8492fa598010f" => :big_sur
    sha256 "5334dd344986e46b2aa4f0471cac7b0914bd7de7cb890a34415771788d03f2ac" => :catalina
    sha256 "22948764d8f8d7be4870ff92dae64d986eb63a9150b219c20fff87d1a6aa93d6" => :mojave
    sha256 "702dc7f78444d2f4f1c19324be654bcbb8b99dd0e9ce26c3e2fbc3b6464a189f" => :x86_64_linux
  end

After the change in this PR, the result is the following:

  bottle do
    sha256 "a0af7dcbb5c83f6f3f7ecd507c2d352c1a018f894d51ad241ce8492fa598010f" => :big_sur
    sha256 "5334dd344986e46b2aa4f0471cac7b0914bd7de7cb890a34415771788d03f2ac" => :catalina
    sha256 "22948764d8f8d7be4870ff92dae64d986eb63a9150b219c20fff87d1a6aa93d6" => :mojave
    sha256 "702dc7f78444d2f4f1c19324be654bcbb8b99dd0e9ce26c3e2fbc3b6464a189f" => :x86_64_linux
  end

The brew bottle --merge code will pick the most common cellar line between the 4 bottles, by order of priority:
- non-relocatable (fixed cellar path)
- cellar :any
- cellar :any_skip_relocation

In the case of the hello bottle, the 3 mac bottles are "cellar :any_skip_relocation", and the linux bottle
is non-relocatable. So the linux bottle wins and the code correctly determines that the 4 bottles should
be non-relocatable.

In that case, the /home/linuxbrew/.linuxbrew/Cellar path is defined as cellar, and by convention
we do not write that out to the formula file, hence the cellar path check that needs to be modified
in this PR.

This PR also fixes the same situation for mac ARM cellar paths
2020-11-26 15:11:55 +01:00
Markus Reiter
794b128969 Work around BOM find bug. 2020-11-26 14:13:01 +01:00
Markus Reiter
5786a8937d
Merge pull request #9278 from reitermarkus/formulary-backtrace
Don't output backtrace in `Formulary`.
2020-11-26 11:38:28 +01:00
Mike McQuaid
465573c1fc
Merge pull request #9273 from tschoonj/cairomm-1.14
formula_auditor: add cairomm@1.14 to allowlist
2020-11-26 09:09:47 +00:00
Mike McQuaid
844efe591f
Merge pull request #9213 from maxim-belkin/handle-curl-git-better
Properly handle outdated cURL
2020-11-26 09:09:20 +00:00
Mike McQuaid
6f4d2a9dcd
brew.sh: remove trailing period. 2020-11-26 08:35:42 +00:00
Mike McQuaid
135b5a3679
dev-cmd/unbottled: add new command.
Add a new command to list formulae that aren't bottled for a given OS.
2020-11-26 08:22:06 +00:00
Maxim Belkin
2aecfe60fc Update logic that handles HOMEBREW_GIT_PATH. 2020-11-25 16:08:57 -06:00
Markus Reiter
db980464f6 Try retrying BOM find command. 2020-11-25 22:36:29 +01:00
BrewTestBot
677eb2ef28 Update RBI files for sorbet. 2020-11-25 20:44:50 +00:00
BrewTestBot
47ed61e19a brew vendor-gems: commit updates. 2020-11-25 20:44:05 +00:00
dependabot[bot]
510948e9c1
build(deps): bump sorbet from 0.5.6101 to 0.5.6111 in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6101 to 0.5.6111.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-25 20:39:40 +00:00
Maxim Belkin
c3231a4095
Apply Mike's suggestions
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-11-25 12:54:18 -06:00
Markus Reiter
daea3c090e Add debug output of find command when creating BOM. 2020-11-25 19:37:36 +01:00
Markus Reiter
038b3b713c
Merge pull request #9276 from reitermarkus/formula-types
Add types for `Formula`.
2020-11-25 19:19:18 +01:00
Mike McQuaid
6936f56b13
Merge pull request #9298 from MikeMcQuaid/deprecation-fixes
Deprecation fixes
2020-11-25 17:04:09 +00:00
Markus Reiter
e354a4f2d6
Merge pull request #9274 from carlossg/nil
fix: launchctl list can return empty id
2020-11-25 17:58:31 +01:00
Michka Popoff
9c3515ce73
Merge pull request #9284 from iMichka/first
pr-pull: fix empty workflow check
2020-11-25 17:49:21 +01:00
Markus Reiter
1690f064a2 Add types for Formula. 2020-11-25 17:36:52 +01:00
Mike McQuaid
311c10636b
Deprecation fixes
- `brew uninstall --zap` replaces `brew cask zap`
- clarify how `--json` should behave

Fixes https://github.com/Homebrew/brew/issues/9296
2020-11-25 16:33:16 +00:00
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
Markus Reiter
0032cfca5b Refactor brew typecheck. 2020-11-25 17:04:19 +01:00
Michka Popoff
76e52ebe62 pr-pull: fix empty workflow check
workflow_run is an array, which first element is the json
returned by the github API. We need to check that first element
if we want to know if the workflow exists.
2020-11-25 16:10:35 +01:00
Mike McQuaid
c5a9de8ff5
Merge pull request #9295 from MikeMcQuaid/ls-formula-default
cmd/list: --formula is no longer a default.
2020-11-25 14:43:03 +00:00
Mike McQuaid
9bd312bab2
Merge pull request #9267 from reitermarkus/macos-version-11.1
Handle macOS versions >= 11.1 correctly.
2020-11-25 14:36:01 +00:00
Mike McQuaid
88ba32c519
os/mac/version: explain Big Sur to_sym logic. 2020-11-25 13:53:52 +00:00
Mike McQuaid
f15c4183e0
cmd/list: --formula is no longer a default.
This behaviour is disabled.
2020-11-25 13:47:05 +00:00
Mike McQuaid
f364f0c841
Merge remote-tracking branch 'origin/master' into deprecate-cask-commands 2020-11-25 09:39:00 +00:00
Mike McQuaid
b484f70572
Remove cask from man brew. 2020-11-25 09:37:21 +00:00
Mike McQuaid
db33c9a2a0
Merge pull request #9209 from MikeMcQuaid/deprecations
Deprecations for Homebrew 2.6.0
2020-11-25 08:49:52 +00:00