26373 Commits

Author SHA1 Message Date
Rylan Polster
a166be9541
Don't convert boolean and blank values to strings in cask artifacts API 2023-02-05 02:58:03 +01:00
Xuehai Pan
4322e57dd0 utils/curl: make --show-error optional 2023-02-04 13:05:41 +00:00
Xuehai Pan
ba3bccf9ed api: download from HOMEBREW_API_DOMAIN 2023-02-04 13:05:20 +00:00
Mike McQuaid
082e75e692
Merge pull request #14500 from MikeMcQuaid/remove_api_versions
api/versions: remove.
2023-02-04 13:59:43 +01:00
Mike McQuaid
7b3756a29f
Merge pull request #14497 from Rylan12/fix-api-fallback
Fix JSON file download failure fallback
2023-02-04 13:47:09 +01:00
Mike McQuaid
9ba6aef820
api: improve exception handling. 2023-02-04 13:22:15 +01:00
Mike McQuaid
2a01529cad
api/versions: remove.
We no longer (never?) need/use these APIs so can remove them from here
and from Homebrew/formulae.brew.sh.
2023-02-04 13:09:59 +01:00
Mike McQuaid
e8cd518b7e
Merge pull request #14485 from asutoshpalai/linux-arm-coretap
Making core tap install an in-process call
2023-02-04 12:48:10 +01:00
Rylan Polster
cbda171c2b
Fix JSON file download failure fallback 2023-02-04 01:46:50 +01:00
Rylan Polster
791022dc21
Merge pull request #14495 from Homebrew/dependabot/bundler/Library/Homebrew/rspec-core-3.12.1
build(deps): bump rspec-core from 3.12.0 to 3.12.1 in /Library/Homebrew
2023-02-03 19:07:35 -05:00
Rylan Polster
9e280f2c44
update: increase max time for API JSON updates 2023-02-03 19:16:30 +01:00
BrewTestBot
046dcfed15
Update RBI files for rspec-core.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-02-03 18:14:47 +00:00
BrewTestBot
0001b0447d
brew vendor-gems: commit updates. 2023-02-03 18:07:32 +00:00
dependabot[bot]
71e4ecb494
build(deps): bump rspec-core from 3.12.0 to 3.12.1 in /Library/Homebrew
Bumps [rspec-core](https://github.com/rspec/rspec-core) from 3.12.0 to 3.12.1.
- [Release notes](https://github.com/rspec/rspec-core/releases)
- [Changelog](https://github.com/rspec/rspec-core/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-core/compare/v3.12.0...v3.12.1)

---
updated-dependencies:
- dependency-name: rspec-core
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 18:03:20 +00:00
Asutosh Palai
0227ff0e31
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-03 09:30:20 -08:00
Mike McQuaid
9a13f53cbb
Merge branch 'master' into remove-fetch-print 2023-02-03 13:10:19 +00:00
Rylan Polster
051895850c
Merge pull request #14491 from MikeMcQuaid/api_non_fatal_errors
api: warn rather than fail if we've got a cached version.
2023-02-03 05:50:58 -05:00
Rylan Polster
c30b489525
Homebrew::API::fetch_file_source: remove debug line 2023-02-03 11:48:02 +01:00
Mike McQuaid
b009077c14
Merge pull request #14490 from MikeMcQuaid/fix_dev_install_from_api
brew.sh: fix HOMEBREW_INSTALL_FROM_API logic.
2023-02-03 10:30:50 +00:00
Rylan Polster
af9ba41cb0
Merge pull request #14456 from Rylan12/api-language-support
Support `languages` when installing from the API
2023-02-03 05:23:55 -05:00
Mike McQuaid
561e520467
api: warn rather than fail if we've got a cached version.
Rather than failing every time we fail to update (breaking most usage
while offline) instead only fail if we cannot obtain the JSON and we
don't have a valid local file we can use.

Also tweak the timeout and retry logic and values to make a bit more
sense in this context and not be so noisy when offline.
2023-02-03 10:22:50 +00:00
Mike McQuaid
bdbcf094fa
brew.sh: fix HOMEBREW_INSTALL_FROM_API logic.
Ensure that we handle this a bit more correctly so it's unset more often.
2023-02-03 09:59:06 +00:00
Mike McQuaid
820ec5411f
Merge pull request #14472 from apainintheneck/cask-loader-improvements
Cask loader improvements
2023-02-03 08:37:07 +00:00
Mike McQuaid
9d6713d023
Merge branch 'master' into api-language-support 2023-02-03 08:36:23 +00:00
Mike McQuaid
14eb3536ce
Merge pull request #14484 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-02-03 08:31:59 +00:00
apainintheneck
8060360333 Fix supported version check
HOMEBREW_PREFIX is a Pathname; HOMEBREW_DEFAULT_PREFIX
and HOMEBREW_MACOS_ARM_DEFAULT_PREFIX are strings.
2023-02-02 19:58:03 -08:00
apainintheneck
15c1930804 Remove redundant FromAPILoader attempt
After 32a0877 this logic has been changed so it's now
always covered by `FromAPILoader.can_load?`.
2023-02-02 18:43:53 -08:00
apainintheneck
2d93cbe13f Handle merge conflict 2023-02-02 18:40:13 -08:00
Asutosh Palai
a3765d0a80 making core tap install an in-process call
This helps fixes problems with fresh install on ARM Linux.
When brew is relaunched with filtered PATH, it is not able to
find user installed Ruby.
2023-02-03 00:36:39 +00:00
BrewTestBot
0ed2ef92cc
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-03 00:28:00 +00:00
Mike McQuaid
41ad2eba15
update-maintainers/manpages: not all PLC are maintainers.
So list all maintainers separately.
2023-02-02 17:09:25 +00:00
Mike McQuaid
46fc4f9f1b
Don't allow HOMEBREW_INSTALL_FROM_API when building from source
When either being in a non-default prefix or being on an unsupported
macOS version we expect most things to be built from source. In that
environment, do not allow HOMEBREW_INSTALL_FROM_API to be set.

Fixes #14475
2023-02-02 14:49:34 +00:00
Mike McQuaid
cdf58fe392
Merge pull request #14439 from MikeMcQuaid/cask_source_tweaks
Tweak cask-source API handling
2023-02-02 12:50:27 +00:00
Mike McQuaid
1c1c1623e2
test/cask/cmd/list: add tap_git_head. 2023-02-02 12:19:44 +00:00
Mike McQuaid
28e1135c92
Merge pull request #14437 from hyuraku/apply-extend/os-to-migrate_gcc_dependents_if_needed
apply extend/os to `migrate_gcc_dependents_if_needed`
2023-02-02 10:45:09 +00:00
hyuraku
a57b9e7bdf repair if style 2023-02-02 19:03:05 +09:00
hyuraku
4caee38388 mv extend/os update-report 2023-02-02 19:00:13 +09:00
hyuraku
6945cd7da4 - remove mac/cmd/update-report
- repair if condition
- repair require filename
2023-02-02 18:50:09 +09:00
Carlo Cabrera
4ded574330
Merge pull request #14471 from carlocab/regex-fix 2023-02-02 08:59:46 +08:00
Dawid Dziurla
856a347bfd
Merge pull request #14474 from dawidd6/fix-lc-tc-aliases
brew.sh: add missing dev-cmd aliases
2023-02-01 20:26:04 +01:00
Dawid Dziurla
e1700178bd
brew.sh: add missing dev-cmd aliases 2023-02-01 13:51:18 +01:00
apainintheneck
e0ad960025 Load cask from API with fullname
This allows homebrew/cask/caskname
to work with the FromAPILoader.

Also, creates new constant to hold the
regex to validate main tap casks.
2023-01-31 19:39:10 -08:00
Carlo Cabrera
93fd448c6c
version: fix bad regexps in version parsers
The character class `[.-v]` is interpreted as all the characters between
`.` and `v`, which is clearly not what is intended here.

Here's an example of what this fixes. Before:

    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    6.0.0rc1

After:

    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    16.0.0rc1

The problem here is that `1` is a match for `/[.-v]/`.

    ❯ brew ruby -e 'puts /[.-v]/.match("1")'
    1
2023-02-01 10:48:45 +08:00
Mike McQuaid
7a5f6143d3
Merge pull request #14466 from Homebrew/dependabot/bundler/Library/Homebrew/tzinfo-2.0.6
build(deps): bump tzinfo from 2.0.5 to 2.0.6 in /Library/Homebrew
2023-01-31 12:05:49 +00:00
Mike McQuaid
34b1cc2218
Merge pull request #14458 from dduugg/rm-string-extension
Remove redundant String extension
2023-01-31 11:55:43 +00:00
Mike McQuaid
e7380b2e76
Merge pull request #14446 from Homebrew/dependabot/bundler/Library/Homebrew/webrick-1.8.1
build(deps): bump webrick from 1.7.0 to 1.8.1 in /Library/Homebrew
2023-01-31 11:46:35 +00:00
Mike McQuaid
90b154fdb5
Merge branch 'master' into cask_source_tweaks 2023-01-31 10:50:34 +00:00
apainintheneck
4917a35413 Add sanity check for cask token 2023-01-30 23:52:57 -08:00
Kevin
1e4ae4ef7d
Merge pull request #14452 from dduugg/rm-undent-mp
remove String#undent 🐵-patch
2023-01-30 21:28:51 -08:00
Issy Long
79676ad20d
Merge pull request #14450 from issyl0/casks-are-not-formulae
cli/parser: Don't treat args with `--cask` as formulae
2023-01-31 00:07:06 +00:00