34036 Commits

Author SHA1 Message Date
Maxim Belkin
da9e29ced8 Bash completions: cache Homebrew commands 2023-02-06 09:46:38 -07:00
Maxim Belkin
5f99c1cbda Bash completions: apply fix from #14467 to the right file 2023-02-06 09:36:19 -07: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
Sean Molenaar
61e5e19bdb
analytics: fix spelling
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-02-06 16:56:25 +01:00
Sean Molenaar
10e3c522f7
analytics: stop sending analytics in tests 2023-02-06 16:28:34 +01:00
Rylan Polster
ce56fc8afd
Remove unecessary message of brew edit 2023-02-06 16:24:34 +01:00
Rylan Polster
39097583b9
Set HOMEBREW_NO_INSTALL_FROM_API for certain commands 2023-02-06 16:17:04 +01:00
Mike McQuaid
1a0f62c5dc
Merge pull request #14522 from Rylan12/api-load-booleans
Properly load booleans from the API
2023-02-06 16:06:15 +01:00
Mike McQuaid
ca95704c95
Merge pull request #14520 from Bo98/api-source
Better support source builds under API mode
2023-02-06 16:05:14 +01:00
Mike McQuaid
c53f957819
Merge pull request #14515 from branchvincent/quiet-doctor
cmd/doctor: respect `--quiet`
2023-02-06 15:39:21 +01:00
Mike McQuaid
96cf41ed2b
Merge pull request #14518 from Bo98/api-license
Fix license handling for API formulae
2023-02-06 15:31:10 +01:00
Mike McQuaid
bdc22fe0c7
Merge pull request #14514 from apainintheneck/add-logging-to-cask-loader
Adds logging to cask loader
2023-02-06 15:20:50 +01:00
Rylan Polster
48f4769155
Properly load booleans from the API 2023-02-06 15:07:28 +01:00
Bo Anderson
2055792791
Better support source builds under API mode 2023-02-06 13:27:36 +00:00
Bo Anderson
33681f90e3
Add HEAD information to JSON API 2023-02-06 13:06:39 +00:00
Bo Anderson
83b23e6d5e
Fix license handling for API formulae 2023-02-06 10:09:40 +00:00
Mike McQuaid
8edf681175
Merge pull request #14482 from Homebrew/import_homebrew_governance_private 2023-02-06 10:22:25 +01:00
Branch Vincent
8db571e4b0
cmd/doctor: respect --quiet 2023-02-05 15:06:26 -08:00
apainintheneck
36ca7c95e5 Adds logging to cask loader
- extend Context to get `debug?` method
- create FromDefaultTapPathLoader to handle
  expected loading option
- log cask loader used when --debug
2023-02-05 13:36:26 -08:00
Mike McQuaid
b3a71ba7cd
Merge pull request #14412 from MikeMcQuaid/homebrew_install_from_api_default
HOMEBREW_INSTALL_FROM_API: make the default for everyone.
2023-02-05 18:44:36 +01:00
Mike McQuaid
4b6c906793
Merge pull request #14513 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-02-05 18:26:44 +01:00
Mike McQuaid
5f6c69bca2
HOMEBREW_INSTALL_FROM_API: make the default for everyone.
- remove all places we check the flag so it's a no-op now
- flip the messaging to refer to `HOMEBREW_NO_INSTALL_FROM_API` where
  relevant
- adjust the documentation
2023-02-05 18:13:08 +01:00
BrewTestBot
9e9b0abdd5
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-02-05 16:58:06 +00:00
Mike McQuaid
c1b96e7199
Merge pull request #14382 from MikeMcQuaid/deprecate-disable-remove
Add deprecations and disables
2023-02-05 17:56:58 +01:00
Rylan Polster
cfde9b82ac
Merge pull request #14509 from Rylan12/missing-caskfile
Add error message with instructions for the missing cask file
2023-02-05 16:35:10 +01:00
Rylan Polster
ffad784971
Merge pull request #14511 from Rylan12/fix-config-error
Fix error when showing `brew config` JSON update time
2023-02-05 16:32:10 +01:00
Rylan Polster
dde44ed37c
Clarify cause of the bug in messaging
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-05 16:10:22 +01:00
Rylan Polster
672b8c036d
Fix error when showing brew config JSON update time 2023-02-05 16:07:00 +01:00
Rylan Polster
0229196ac5
Merge pull request #14503 from Rylan12/artifact-json-fix
Don't convert boolean and blank values to strings in cask artifacts API
2023-02-05 15:40:14 +01:00
Rylan Polster
0fd1be9a8e
Add error message with instructions for the missing cask file 2023-02-05 15:35:11 +01:00
Mike McQuaid
d7b1f19700
Merge pull request #14467 from maxim-belkin/completions_bash_brew_save_time1
brew Bash completions: use HOMEBREW cache and repo env vars
2023-02-05 14:09:51 +01:00
Rylan Polster
e466a68c56
Merge pull request #14506 from Rylan12/fix-missing-cask
Fix cask not found error when upgrading certain casks
2023-02-05 13:37:14 +01:00
Maxim Belkin
41385efcab
brew Bash completions: cache Homebrew commands 2023-02-05 05:35:37 -07:00
Rylan Polster
7b550ad8c6
Improve style
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-02-05 13:06:05 +01:00
Rylan Polster
7dbc33a0df
Cleanup case handling
Co-authored-by: Kevin <apainintheneck@gmail.com>
2023-02-05 12:42:31 +01:00
Rylan Polster
5ab7f14d2b
Fix cask not found error when upgrading certain casks 2023-02-05 12:26:22 +01:00
Mike McQuaid
179974ce26
Merge pull request #14502 from dduugg/active-support-reduce
Remove active_support Time extensions
2023-02-05 11:51:48 +01:00
Rylan Polster
a166be9541
Don't convert boolean and blank values to strings in cask artifacts API 2023-02-05 02:58:03 +01:00
Douglas Eichelberger
84ddb8bad3 Revert "Remove active_support Time rbi entries"
This reverts commit 3fb9a71114b7b082f15f3f3716b92afc38017aee.
2023-02-04 14:40:11 -08:00
Douglas Eichelberger
3fb9a71114 Remove active_support Time rbi entries 2023-02-04 14:08:45 -08:00
Douglas Eichelberger
24e7c2c5bd Remove active_support Time extensions 2023-02-04 13:51:35 -08: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