33960 Commits

Author SHA1 Message Date
hyuraku
197bdedd35 add new files for dev-cmd/bottle 2023-02-07 23:22:33 +09:00
hyuraku
26a615f009 move dev-cmd/bottle methods to extend/os 2023-02-07 23:22:33 +09:00
Mike McQuaid
ff5e517949
Merge pull request #14540 from maxim-belkin/speedup_tap_completions
Bash completions: speed up Tap completions
2023-02-07 14:56:25 +01:00
Mike McQuaid
66fe57edb9
Merge pull request #14544 from XuehaiPan/api-bottle-domain
formulary: respect `HOMEBREW_BOTTLE_DOMAIN` when installing from API
2023-02-07 14:53:17 +01:00
Mike McQuaid
ea40275c63
Merge pull request #14545 from maxim-belkin/bash-completions-cleanup
Bash completions: clean up basic functions
2023-02-07 14:53:08 +01:00
Maxim Belkin
262acf114f Bash completions: clean up basic functions 2023-02-07 06:17:19 -07:00
Xuehai Pan
176637acd8 formulary: respect HOMEBREW_BOTTLE_DOMAIN when installing from API 2023-02-07 13:03:25 +00:00
Maxim Belkin
d8e07e2117 Bash completions: speed up Tap completions 2023-02-07 03:50:02 -07:00
Rylan Polster
8fdf6aca11
Merge pull request #14536 from carlocab/no-api-bump
brew.sh: add `bump` to `HOMEBREW_NO_INSTALL_FROM_API` commands
2023-02-07 09:03:29 +01:00
Carlo Cabrera
76466f66d2
brew.sh: add bump to HOMEBREW_NO_INSTALL_FROM_API commands
`brew bump` relies on `livecheck`, which we don't want to query the API
for.

Also, some small refactoring:

1. Declare the list of commands we want to set
   `HOMEBREW_NO_INSTALL_FROM_API` for as an array.
2. Only check against this list when the command being run is a
   developer command, to avoid checking the list when we know we're not
   running a dev command.
2023-02-07 14:37:14 +08:00
Bo Anderson
2bb5cdaaa9
Merge pull request #14523 from issyl0/gist-logs-better-token-permissions-message
cmd/gist-logs: On 404, the PAT probably needs more permissions
2023-02-07 01:32:10 +00:00
Bo Anderson
acf5f9841a
Merge pull request #14534 from Bo98/rfc3339-method
extend/time: restore rfc3339 method
2023-02-07 01:22:05 +00:00
Issy Long
87348dc179
Apply suggestions from code review
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-02-07 02:05:46 +01:00
Bo Anderson
79f4d5996f
extend/time: restore rfc3339 method 2023-02-07 00:38:46 +00:00
Nanda H Krishna
4af36d161f
Merge pull request #14533 from Homebrew/sponsors-maintainers-man-completions
Update maintainers.
2023-02-06 19:36:04 -05:00
BrewTestBot
927cdf82c9
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-02-07 00:06:51 +00:00
Mike McQuaid
ebed4f564d
Merge pull request #14527 from maxim-belkin/refix-bash-completions-1
Refix bash completions 1
2023-02-06 22:17:43 +01:00
Mike McQuaid
6c27021211
Merge pull request #14525 from SMillerDev/master
analytics: stop sending analytics in tests
2023-02-06 21:28:29 +01:00
Mike McQuaid
fe9af82808
Merge pull request #14529 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.7.0
build(deps): bump rubocop-sorbet from 0.6.11 to 0.7.0 in /Library/Homebrew
2023-02-06 21:17:37 +01:00
Nanda H Krishna
75045e91f8
brew style --fix 2023-02-06 13:50:39 -05:00
BrewTestBot
86afac3840
Update RBI files for rubocop-sorbet.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-02-06 18:15:06 +00:00
BrewTestBot
0386d0b112
brew vendor-gems: commit updates. 2023-02-06 18:08:06 +00:00
dependabot[bot]
95ef63f269
build(deps): bump rubocop-sorbet in /Library/Homebrew
Bumps [rubocop-sorbet](https://github.com/shopify/rubocop-sorbet) from 0.6.11 to 0.7.0.
- [Release notes](https://github.com/shopify/rubocop-sorbet/releases)
- [Commits](https://github.com/shopify/rubocop-sorbet/compare/v0.6.11...v0.7.0)

---
updated-dependencies:
- dependency-name: rubocop-sorbet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 18:04:01 +00:00
Rylan Polster
dc145587da
Merge pull request #14524 from Rylan12/improve-dev-api
Set `HOMEBREW_NO_INSTALL_FROM_API` for certain commands
2023-02-06 18:25:03 +01:00
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