19256 Commits

Author SHA1 Message Date
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
Mike McQuaid
fd08ffdd67
cmd/update.sh: update Git logic.
Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com>
2020-11-25 08:44:40 +00:00
Maxim Belkin
82ad6a56e9
Address review comments. 2020-11-24 21:01:22 -06:00
Maxim Belkin
2b6c1e220d
brew.sh: don't mention HOMEBREW_DEVELOPER 2020-11-24 20:51:49 -06:00
Markus Reiter
da2d80cdcb
Merge pull request #9282 from reitermarkus/app-source-not-there
Add more BOM debug information.
2020-11-25 02:33:05 +01:00
Rylan Polster
737d9b698b fix update-python-resources for formulae not in a tap 2020-11-24 16:52:29 -05:00
Markus Reiter
b9fc7e100b Add more BOM debug information. 2020-11-24 22:12:17 +01:00
Rylan Polster
b2e25d12aa utils/pypi: refactor package handling 2020-11-24 15:40:15 -05:00
Rylan Polster
ee47b863c4 move mapping from formula_lists to pypi_formula_mappings 2020-11-24 15:40:15 -05:00
Rylan Polster
20de58b5ae bump-formula-pr: use new update_python_resources! signature 2020-11-24 15:40:15 -05:00
Rylan Polster
fac2bd8843 use auto update list when --print-only is passed 2020-11-24 15:40:15 -05:00
Rylan Polster
51a1b7c9e1 move pypi list to tap formula_lists directory 2020-11-24 15:40:15 -05:00
Rylan Polster
8e670995f8 migrate automatic python resource list to Homebrew/core 2020-11-24 15:40:15 -05:00
Shaun Jackman
4bbf92912b Enable HOMEBREW_PATCHELF_RB_WRITE by default
Enable HOMEBREW_PATCHELF_RB_WRITE by default for everyone except CI.
It may be disabled using HOMEBREW_NO_PATCHELF_RB_WRITE.
It may be enabled on CI using HOMEBREW_PATCHELF_RB_WRITE.
2020-11-24 10:52:11 -08:00
Markus Reiter
63dead36cc
Merge pull request #9277 from reitermarkus/app-source-not-there
Add debug information for empty BOM error.
2020-11-24 19:26:57 +01:00
Tom Schoonjans
b2864fb118 Temporarily disable VERSIONED_KEG_ONLY_ALLOWLIST test 2020-11-24 17:57:44 +00:00
Markus Reiter
0fb9fd2cbe Don't output backtrace in Formulary. 2020-11-24 18:55:17 +01:00
Markus Reiter
c324155295 Add debug information for empty BOM error. 2020-11-24 18:26:15 +01:00
Carlos Sanchez
278bc77f2d fix: launchctl list can return empty id
causing

Error: undefined method `match?' for nil:NilClass

Seen in macOS Big Sur
2020-11-24 18:12:10 +01:00