26204 Commits

Author SHA1 Message Date
Rylan Polster
374b61584b
Load casks from the JSON API with HOMEBREW_INSTALL_FROM_API 2023-01-06 02:46:21 -05:00
Mike McQuaid
ea0b786388
Merge pull request #14333 from asutoshpalai/arm-rbenv-fix
Restoring the original `PATH` after update
2023-01-05 12:16:21 +00:00
Mike McQuaid
a85e1a3e5a
brew.sh: tweak comment. 2023-01-05 09:59:30 +00:00
Mike McQuaid
a9b1fb4755
Merge pull request #14331 from MikeMcQuaid/cask_edit_path
dev-cmd/edit: handle editing with `install_from_api`.
2023-01-05 09:53:42 +00:00
Asutosh Palai
96449a94e0 restoring the original path after update
This fix is required for ARM Linux where portable Homebrew Portable Ruby is not
available. Without this fix, after auto update, brew is restarted with cleaned up path.
This causes it to pick not find user installed Ruby by RVM or rbenv, causing brew to fail.
2023-01-04 22:23:01 +00:00
BrewTestBot
eda38aadf4
Update RBI files for unicode-display_width.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-04 18:12:36 +00:00
BrewTestBot
c3bc05f881
brew vendor-gems: commit updates. 2023-01-04 18:06:38 +00:00
dependabot[bot]
1638535b08
build(deps): bump unicode-display_width in /Library/Homebrew
Bumps [unicode-display_width](https://github.com/janlelis/unicode-display_width) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/janlelis/unicode-display_width/releases)
- [Changelog](https://github.com/janlelis/unicode-display_width/blob/main/CHANGELOG.md)
- [Commits](https://github.com/janlelis/unicode-display_width/compare/v2.4.0...v2.4.2)

---
updated-dependencies:
- dependency-name: unicode-display_width
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-04 18:02:23 +00:00
Mike McQuaid
9e9b71bea9
Merge pull request #14325 from FnControlOption/fetch
formula_installer: check if dependencies have already been fetched.
2023-01-04 14:46:26 +00:00
Mike McQuaid
752d1fa114
formula_installer: add comment. 2023-01-04 14:19:22 +00:00
Mike McQuaid
37be5bea52
dev-cmd/edit: handle editing with install_from_api.
Before this change, this would fail every time, even when available on
disk (which was not the case for formulae).

With this change, it will attempt to find it from a tap on disk and only
fail if it cannot be found in any.
2023-01-04 13:51:21 +00:00
Rylan Polster
dc19eba5d9
Merge pull request #14328 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.2.0.0
build(deps): bump parser from 3.1.3.0 to 3.2.0.0 in /Library/Homebrew
2023-01-04 00:58:21 -05:00
Rylan Polster
66b958a0b9
Merge pull request #14327 from Homebrew/dependabot/bundler/Library/Homebrew/unicode-display_width-2.4.0
build(deps): bump unicode-display_width from 2.3.0 to 2.4.0 in /Library/Homebrew
2023-01-04 00:57:02 -05:00
Rylan Polster
e5616e94fe
Vendor method_source gem 2023-01-03 23:27:31 -05:00
BrewTestBot
c78aa1cd22
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-03 18:20:15 +00:00
BrewTestBot
a424eb8a26
brew vendor-gems: commit updates. 2023-01-03 18:13:21 +00:00
BrewTestBot
89a13e71d8
Update RBI files for unicode-display_width.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-03 18:13:11 +00:00
BrewTestBot
2dc5e1e0d8
brew vendor-gems: commit updates. 2023-01-03 18:04:48 +00:00
dependabot[bot]
fb82dc0ed7
build(deps): bump parser from 3.1.3.0 to 3.2.0.0 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.1.3.0 to 3.2.0.0.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.1.3.0...v3.2.0.0)

---
updated-dependencies:
- dependency-name: parser
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 18:02:23 +00:00
dependabot[bot]
7216ac8fa5
build(deps): bump unicode-display_width in /Library/Homebrew
Bumps [unicode-display_width](https://github.com/janlelis/unicode-display_width) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/janlelis/unicode-display_width/releases)
- [Changelog](https://github.com/janlelis/unicode-display_width/blob/main/CHANGELOG.md)
- [Commits](https://github.com/janlelis/unicode-display_width/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: unicode-display_width
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-03 18:00:56 +00:00
Rylan Polster
a81710542f
Merge pull request #14324 from Rylan12/flight-blocks-cask-api
Include `*flight` block source in cask API
2023-01-03 11:44:53 -05:00
Mike McQuaid
077e9dccaf
Merge pull request #14322 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.42.0
build(deps): bump rubocop from 1.41.1 to 1.42.0 in /Library/Homebrew
2023-01-03 13:34:05 +00:00
Rylan Polster
d1490c3d5c
Add method_source to Gemfile 2023-01-03 03:04:44 -05:00
Rylan Polster
7ca5a5d9a7
Simplify require "method_source" calls 2023-01-02 17:41:36 -05:00
fn ⌃ ⌥
e234fb7542 formula_installer: check if dependencies have already been fetched.
Given a `pkg_a` that depends on `pkg_b`, it is redundant to list
`pkg_b` as a dependency when running the following commands:

- `brew install pkg_b pkg_a`
- `brew upgrade` (when both `pkg_a` and `pkg_b` are outdated)
2023-01-02 14:10:17 -08:00
Kevin
2e0b18f762
Merge pull request #14315 from apainintheneck/better-error-cask-on-linux
cli/parser: Better error message for cask on linux
2023-01-02 13:21:56 -08:00
Rylan Polster
2d5d132713
Include *flight block source in cask API 2023-01-02 14:33:33 -05:00
Mike McQuaid
05188b1ab9
Merge pull request #14320 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.17.0
build(deps): bump minitest from 5.16.3 to 5.17.0 in /Library/Homebrew
2023-01-02 19:22:14 +00:00
Mike McQuaid
6a25229567
brew style --fix 2023-01-02 19:18:51 +00:00
Mike McQuaid
35e6627461
Merge pull request #14321 from Homebrew/dependabot/bundler/Library/Homebrew/parlour-8.1.0
build(deps-dev): bump parlour from 8.0.0 to 8.1.0 in /Library/Homebrew
2023-01-02 19:14:45 +00:00
Mike McQuaid
585d10fdc8
Merge pull request #14313 from apainintheneck/fix-brew-prof
cmd/prof: Fix gem errors
2023-01-02 19:14:03 +00:00
apainintheneck
d8c2e311ab Use odie instead of bare exception
The reason that odie works well here
is that it doesn't print a stacktrace
or get caught and print the help page.
2023-01-02 10:59:08 -08:00
BrewTestBot
1921b5bd96
Update RBI files for rubocop.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-02 18:13:16 +00:00
BrewTestBot
c7fed619ec
Update RBI files for parlour.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-02 18:11:22 +00:00
BrewTestBot
941b500b95
Update RBI files for minitest.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2023-01-02 18:09:58 +00:00
BrewTestBot
c0c9300637
brew vendor-gems: commit updates. 2023-01-02 18:06:37 +00:00
BrewTestBot
a92aabecce
brew vendor-gems: commit updates. 2023-01-02 18:05:47 +00:00
BrewTestBot
9e486cd644
brew vendor-gems: commit updates. 2023-01-02 18:04:31 +00:00
Kevin
073c004ef3
Add :needs_network to brew prof tests
They need network access to download the profiler gems.

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-01-02 10:02:51 -08:00
dependabot[bot]
1b775ade43
build(deps): bump rubocop from 1.41.1 to 1.42.0 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.41.1 to 1.42.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.41.1...v1.42.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 18:02:29 +00:00
dependabot[bot]
b6bca294d5
build(deps-dev): bump parlour from 8.0.0 to 8.1.0 in /Library/Homebrew
Bumps [parlour](https://github.com/AaronC81/parlour) from 8.0.0 to 8.1.0.
- [Release notes](https://github.com/AaronC81/parlour/releases)
- [Changelog](https://github.com/AaronC81/parlour/blob/master/CHANGELOG.md)
- [Commits](https://github.com/AaronC81/parlour/compare/8.0.0...8.1.0)

---
updated-dependencies:
- dependency-name: parlour
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 18:01:08 +00:00
dependabot[bot]
29c0e9c0f7
build(deps): bump minitest from 5.16.3 to 5.17.0 in /Library/Homebrew
Bumps [minitest](https://github.com/seattlerb/minitest) from 5.16.3 to 5.17.0.
- [Release notes](https://github.com/seattlerb/minitest/releases)
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](https://github.com/seattlerb/minitest/compare/v5.16.3...v5.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 18:00:56 +00:00
Sean Molenaar
84911edbed
system config: don't print WSL info on non-WSL systems
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-01-02 16:08:42 +01:00
apainintheneck
d291117468 Improve install cmd error msg
It now specifies casks, formulae or both in
theh output based upon the user args given.
2022-12-31 15:52:05 -08:00
apainintheneck
a8384c0ce7 cli/parser: Better error message for cask on linux
1. Validate options before constraint violations. This allows
us to error out when --cask is passed on Linux before getting
a constraint violation when --cask and --formula are set.
2. Skip printing the help page when --cask is passed on Linux.
2022-12-31 12:34:18 -08:00
apainintheneck
d318c56013 Add integration tests for profiler 2022-12-30 19:37:32 -08:00
Sean Molenaar
55c82749ad
SystemConfig: show WSL version if available on Linux 2022-12-30 20:48:24 +01:00
apainintheneck
5708ed3171 Fix brew prof --stackprof
The `stackprof` gem wasn't being included
correctly because it was missing the path
directory. This vendored gems path is added
later on in `load_path.rb`.

We export the GEM_PATH and GEM_HOME environment
variables in setup_gem_environment! so we
can use that information if we require the
`rubygems` gem first.
2022-12-29 17:44:48 -08:00
Kevin
d84d4b51a4
Merge pull request #14300 from apainintheneck/remove-bitdefender-diagnostic-check
Remove bitdefender diagnostic check
2022-12-29 17:37:37 -08:00
apainintheneck
3a35ea3e28 Set ruby-prof to v1.4.3
This is the last version of this gem that supports
Ruby 2.6.x. We can stop passing the explicit version
when we move to a newer version of Ruby.
2022-12-29 12:48:13 -08:00