25561 Commits

Author SHA1 Message Date
Markus Reiter
3fc8c703f2
Merge pull request #9456 from reitermarkus/bump-unversioned-casks
Fix wrong version mapping in `bump-unversioned-casks`.
2020-12-08 01:56:01 +01:00
Bryce Glover
39bdb54d2d [.github/workflows/tests.yml] jobs.test-everything: Don't run on user forks. 2020-12-07 19:31:24 -05:00
Bryce Glover
94d68404db [.github/workflows/tests.yml] jobs.tap-syntax: Don't run on user forks. 2020-12-07 19:31:24 -05:00
Bryce Glover
ce11d63ca8 [.github/workflows/docker.yml] jobs.ubuntu: Don't run on user forks. 2020-12-07 19:31:24 -05:00
Misty De Meo
08be577d5f
Merge pull request #9452 from mistydemeo/ruby_fix_up_broken_system_headers
RbConfig: fix broken MacOS SDK paths
2020-12-07 16:18:12 -08:00
Markus Reiter
1c2a31e224 Allow passing individual casks to bump-unversioned-casks for debugging. 2020-12-08 01:03:39 +01:00
Markus Reiter
05b496194a Fix version mapping. 2020-12-08 01:03:33 +01:00
Markus Reiter
e416668a25
Merge pull request #9423 from reitermarkus/bump-unversioned-casks
Add `bump-unversioned-casks` command.
2020-12-08 00:19:37 +01:00
Markus Reiter
73440797ef Add bump_unversioned_cask helper method. 2020-12-07 23:03:47 +01:00
Markus Reiter
c6876ba65c Add UnversionedCaskChecker helper class. 2020-12-07 23:03:47 +01:00
Markus Reiter
3b524a04c2 Output PKG contents if no version can be found. 2020-12-07 23:03:47 +01:00
Markus Reiter
d6f30a4bc1 Handle formatted versions ending with build version. 2020-12-07 23:03:47 +01:00
Markus Reiter
96bbf1ac15 Show contained files of PKGs when version detection fails. 2020-12-07 23:03:47 +01:00
Markus Reiter
4f3bfd1d58 Improve handling of short_version starting with version. 2020-12-07 23:03:47 +01:00
Markus Reiter
91ce799fe2 Ignore empty version strings. 2020-12-07 23:03:47 +01:00
Markus Reiter
933499089c Add test for decide_between_versions. 2020-12-07 23:03:47 +01:00
Markus Reiter
6d21df2c8b Always choose longer version in correct format. 2020-12-07 23:03:47 +01:00
Markus Reiter
bf46814ddd Skip casks before extracting. 2020-12-07 23:03:47 +01:00
Markus Reiter
a3182a6386 Extract package into new temporary directory. 2020-12-07 23:03:47 +01:00
Markus Reiter
ef1ea75c08 Add support for single-package casks. 2020-12-07 23:03:47 +01:00
Markus Reiter
2157a71a68 Never exit with failure. 2020-12-07 23:03:47 +01:00
Markus Reiter
ffebf0da5f Update check_time even if time and file size didn't change. 2020-12-07 23:03:47 +01:00
Markus Reiter
0a54169fa6 Change limit to minutes. 2020-12-07 23:03:47 +01:00
Markus Reiter
b57a448f2a Add bump-unversioned-casks command. 2020-12-07 23:03:47 +01:00
Markus Reiter
76a3c0338b Add unversioned? method to Cask::URL. 2020-12-07 21:40:47 +01:00
Michka Popoff
ff28d7c69b
Merge pull request #9365 from iMichka/merge-test1
bottle: add tests for json merging
2020-12-07 21:15:47 +01:00
Michka Popoff
d768b6649a bottle: add tests for json merging
- Extract the json reading from the json merging: it makes the code hard to understand.
This helps for the separation of concerns: the jsons are read in one method;
and merged in a second one
- Added a first test to check the merge function

No change in behaviour was done, this change is just there to increase code coverage
and to prepare for #9315
2020-12-07 19:58:49 +01:00
Seeker
a2af19360b extend: add on_os (for on_macos/on_linux) 2020-12-07 10:36:51 -08:00
Misty De Meo
11445e0f3e RbConfig: fix broken MacOS SDK paths 2020-12-07 10:33:56 -08:00
Mike McQuaid
20af7ee11f
Merge pull request #9448 from MikeMcQuaid/bottle_checksum_sorting
software_spec: make bottle sorting stable.
2020-12-07 16:26:43 +00:00
Rylan Polster
cb4e473384 uses: further cleanup formula/cask argument handling 2020-12-07 11:12:56 -05:00
Mike McQuaid
f5f50feebc
Merge pull request #9447 from MikeMcQuaid/no-shallow-clone-clarify
cmd/update: improve shallow clone message.
2020-12-07 16:05:17 +00:00
Mike McQuaid
161cbf1074
Merge pull request #9446 from MikeMcQuaid/dispatch_build_bottle_arm_fix
dev-cmd/dispatch-build-bottle: remove testing code.
2020-12-07 16:05:00 +00:00
Mike McQuaid
a5bd7cccf1
software_spec: make bottle sorting stable.
As `:arm64_big_sur` and `:big_sur` equated to the same version: their
sorting was not consistent. Instead, suffix the tag and use that for
sorting so `:big_sur` is always before `:arm64_big_sur`.
2020-12-07 15:43:44 +00:00
Markus Reiter
9412c86856
Merge pull request #9440 from Homebrew/dependabot/bundler/docs/html-proofer-3.17.4
build(deps-dev): bump html-proofer from 3.17.3 to 3.17.4 in /docs
2020-12-07 16:37:26 +01:00
Markus Reiter
57250ecdf0
Merge pull request #9441 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.6134
build(deps): bump sorbet from 0.5.6130 to 0.5.6134 in /Library/Homebrew
2020-12-07 16:37:02 +01:00
Mike McQuaid
9d90ef29eb
cmd/update: improve shallow clone message. 2020-12-07 15:23:08 +00:00
Mike McQuaid
3aeaf51538
Merge pull request #9445 from MikeMcQuaid/diagnostic-exist-writable
diagnostic: don't complain about creatable directories that don't exist.
2020-12-07 15:12:23 +00:00
Mike McQuaid
532864b0ef
dev-cmd/dispatch-build-bottle: remove testing code.
This was accidentally merged in https://github.com/Homebrew/brew/pull/9444.
2020-12-07 14:42:00 +00:00
BrewTestBot
e51e0685b1 Update RBI files for sorbet. 2020-12-07 14:41:14 +00:00
BrewTestBot
a90bb733af brew vendor-gems: commit updates. 2020-12-07 14:40:28 +00:00
dependabot[bot]
229cbb0ef3
build(deps): bump sorbet from 0.5.6130 to 0.5.6134 in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6130 to 0.5.6134.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 14:34:54 +00:00
dependabot[bot]
dcbdb9563a
build(deps-dev): bump html-proofer from 3.17.3 to 3.17.4 in /docs
Bumps [html-proofer](https://github.com/gjtorikian/html-proofer) from 3.17.3 to 3.17.4.
- [Release notes](https://github.com/gjtorikian/html-proofer/releases)
- [Commits](https://github.com/gjtorikian/html-proofer/compare/v3.17.3...v3.17.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-07 14:34:00 +00:00
Mike McQuaid
b751742dfc
diagnostic: don't complain about creatable directories that don't exist.
If you can write to `HOMEBREW_PREFIX` (which isn't the case for
`/usr/local` on newer macOSs) then don't complain about these
directories not existing.
2020-12-07 14:32:56 +00:00
Mike McQuaid
59be0ba888
Merge pull request #9444 from MikeMcQuaid/dispatch_build_bottle_arm
dev-cmd/dispatch-build-bottle: set ARM labels.
2020-12-07 13:47:07 +00:00
Mike McQuaid
09cca671bd
dev-cmd/dispatch-build-bottle: set ARM labels.
Set the label properly for ARM.

Tested with inputs `11-arm` and `arm64_big_sur`.

Fixes https://github.com/Homebrew/brew/issues/9434
2020-12-07 13:20:01 +00:00
Mike McQuaid
62de53a515
Merge pull request #9443 from MikeMcQuaid/arm64_big_sur_bottle_ordering
Fix `:arm64_big_sur` bottle ordering.
2020-12-07 12:37:41 +00:00
Mike McQuaid
cf1e4fbcc3
Merge pull request #9442 from MikeMcQuaid/catalina-ruby-fix
brew.sh: don't allow system Ruby on Catalina.
2020-12-07 12:19:45 +00:00
Mike McQuaid
ed7df8f99d
Merge pull request #9381 from nandahkrishna/github-latest
livecheck: add GithubLatest strategy
2020-12-07 12:14:49 +00:00
Mike McQuaid
66d1b929a5
Fix :arm64_big_sur bottle ordering.
This wasn't being parsed correctly so was being put below the Linux
bottle which is less readable, less intuitive and will cause a bunch
of merge conflicts.
2020-12-07 12:09:29 +00:00