33888 Commits

Author SHA1 Message Date
Issy Long
87348dc179
Apply suggestions from code review
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-07 02:05:46 +01:00
Issy Long
41b143deec
cmd/gist-logs: On 404, the PAT probably needs more permissions
- This 404 error is from GitHub, and GitHub doesn't give us any more
  informations about scopes for the gist endpoint (for some reason). But we can
  safely assume, as it happens a lot, that "Error: Not Found" (404) is because
  the user hasn't granted their `HOMEBREW_GITHUB_API_TOKEN` the `gist` scope.

Before:

```shell
$ HOMEBREW_GITHUB_API_TOKEN=<token_without_gist_scope> brew gist-logs -p logrotate
Error: Not Found
```

After:

```shell
❯ HOMEBREW_GITHUB_API_TOKEN=<token_without_gist_scope> brew gist-logs logrotate
Error: Your GitHub API token likely doesn't have the `gist` scope.
Create a GitHub personal access token:
https://github.com/settings/tokens/new?scopes=gist&description=Homebrew
echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc
```
2023-02-06 17:00:02 +01:00
Mike McQuaid
39e158fb93
Merge pull request #14501 from p-linnane/cookbook-update
docs: Clarify dependency values
2023-02-04 16:01:29 +01:00
Mike McQuaid
163c5a23b9
Merge pull request #14494 from XuehaiPan/api-domain
api: download from `HOMEBREW_API_DOMAIN`
2023-02-04 15:56:39 +01:00
Issy Long
a640c50a04
docs/Formula-Cookbook: Fix markdownlint "multiple blank lines" 2023-02-04 15:38:50 +01:00
Patrick Linnane
8f01281f3d
Update docs/Formula-Cookbook.md
Co-authored-by: Issy Long <issyl0@github.com>
2023-02-04 15:21:16 +01:00
Patrick Linnane
05949443eb
Update docs/Formula-Cookbook.md
Co-authored-by: Issy Long <issyl0@github.com>
2023-02-04 15:21:09 +01:00
Patrick Linnane
225909bb58
Update docs/Formula-Cookbook.md
Co-authored-by: Issy Long <issyl0@github.com>
2023-02-04 15:20:55 +01:00
Patrick Linnane
5ae18ce357
docs: Clarify dependency values 2023-02-04 14:43:32 +01:00
Xuehai Pan
4322e57dd0 utils/curl: make --show-error optional 2023-02-04 13:05:41 +00:00
Xuehai Pan
17b08f2f01 Update manpage 2023-02-04 13:05:20 +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
6b5b786f20
Merge pull request #14496 from Rylan12/update-max-time
`update`: increase max time for API JSON updates
2023-02-03 13:48:27 -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
6a8dd4ff52
Merge pull request #14492 from Rylan12/remove-fetch-print
`Homebrew::API::fetch_file_source`: remove debug line
2023-02-03 13:41:28 +00: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
Mike McQuaid
04700cc08f
Merge pull request #14486 from apainintheneck/fix-prefix-check
OS: Fix supported prefix check
2023-02-03 08:27:32 +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
3af2f0ecec
Merge pull request #14470 from Homebrew/sponsors-maintainers-man-completions
Update maintainers and generation.
2023-02-02 17:50:01 +00:00
Mike McQuaid
705fe01cda
Update maintainers. 2023-02-02 17:09:52 +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
cdc6a4f11f
Merge pull request #14480 from MikeMcQuaid/no_unsupported_install_from_api
Don't allow HOMEBREW_INSTALL_FROM_API when building from source
2023-02-02 15:23: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