20328 Commits

Author SHA1 Message Date
Issy Long
f142714448
Merge pull request #9312 from issyl0/unbottled-fail-nicely-if-HOMEBREW_NO_ANALYTICS
dev-cmd/unbottled: Fail nicely if `HOMEBREW_NO_ANALYTICS` is set
2020-11-27 18:03:34 +00:00
Misty De Meo
7f5a94bbcb Formula cookbook: document with_env
The other syntax for setting `ENV` was added in #9013,
but this form remained undocumented.

Fixes #8648.
2020-11-27 09:08:10 -08:00
Rylan Polster
685efd5a67 Remove hardcoded exceptions to the versioned_keg_only_allowlist 2020-11-27 11:55:53 -05:00
Mike McQuaid
7c56fa9caf
linkage: correctly detect missing kegs.
- manually `raise Errno::ENOENT` to ensure that a keg that doesn't exist
  isn't flagged as a system dependency.
- remove the inconsistent and incorrect summary messaging.
2020-11-27 13:12:09 +00:00
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
Issy Long
ca999a81f7
dev-cmd/unbottled: Fail nicely if analytics data can't be retrieved
- When testing `brew unbottled <formula>` this crashed because I, as a
  maintainer, have `HOMEBREW_NO_ANALYTICS` set on all my machines to
  avoid polluting the analytics with test installs.

```
❯ brew unbottled
==> Getting formulae...
==> Getting analytics data...
Error: undefined method `[]' for nil:NilClass
/usr/local/Homebrew/Library/Homebrew/dev-cmd/unbottled.rb:89:in `formulae_all_sort_installs_from_args'
/usr/local/Homebrew/Library/Homebrew/dev-cmd/unbottled.rb:49:in `unbottled'
/usr/local/Homebrew/Library/Homebrew/brew.rb:119:in `<main>'
```
2020-11-26 21:21:48 +00:00
Rylan Polster
fe8ce9b725 Migrate GNOME_DEVEL_ALLOWLIST 2020-11-26 15:34:32 -05:00
Rylan Polster
de26310b32 Migrate UNSTABLE_DEVEL_ALLOWLIST 2020-11-26 15:26:12 -05:00
Rylan Polster
71beff367a Migrate UNSTABLE_ALLOWLIST 2020-11-26 15:18:06 -05:00
Rylan Polster
c4faac4b2f Migrate CERT_ERROR_ALLOWLIST 2020-11-26 15:01:24 -05:00
Shaun Jackman
65bc39f952 HOMEBREW_PATCHELF_RB_WRITE: Move logic to test-bot 2020-11-26 11:53:31 -08:00
Sam Ford
9539485547
Merge pull request #9074 from vladimyr/livecheck
livecheck: refactor url preprocessing
2020-11-26 14:46:57 -05:00
Rylan Polster
e03d1606d6 Migrate VERSIONED_KEG_ONLY_ALLOWLIST 2020-11-26 14:43:06 -05:00
Rylan Polster
96cf0e5bcd Migrate VERSIONED_DEPENDENCIES_CONFLICTS_ALLOWLIST 2020-11-26 14:32:42 -05:00
Rylan Polster
726b4e1419 Migrate PROVIDED_BY_MACOS_DEPENDS_ON_ALLOWLIST 2020-11-26 14:32:42 -05:00
Shaun Jackman
8a4299d028 Enable HOMEBREW_PATCHELF_RB_WRITE for CI and HOMEBREW_DEV_CMD_RUN
Enable HOMEBREW_PATCHELF_RB_WRITE by default for HOMEBREW_DEV_CMD_RUN
and CI, but not when building bottles.
2020-11-26 11:23:38 -08: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