39183 Commits

Author SHA1 Message Date
apainintheneck
226239da4c tests: remove unnecessary cache clearing
This PR removes all remaining unnecessary cache clearing in tests
from the codebase since we now clear all cachable classes between
tests making this functionally unnecessary.

Original PR to automatically clear caches:
- https://github.com/Homebrew/brew/pull/16746

I also moved the `Utils::Analytics` module to use cachable so
that we don't have to clear caches specifically in tests anymore.
2024-03-31 18:38:03 -07:00
Mike McQuaid
9ae51618b9
Merge pull request #16984 from Homebrew/no-tty
rm unused OutputAsTTY helper
2024-03-31 21:28:28 +01:00
Douglas Eichelberger
471e94d1e8 Add missing require 2024-03-31 13:14:56 -07:00
Mike McQuaid
5e5aee4a1d
Merge remote-tracking branch 'origin/master' into no-tty
# Conflicts:
#	Library/Homebrew/test/cmd/deps_spec.rb
#	Library/Homebrew/test/cmd/info_spec.rb
2024-03-31 19:31:40 +01:00
Mike McQuaid
87bf4af3fc
Merge pull request #16872 from cho-m/cleanup-cask-broken-symlinks
cleanup: remove broken symlink for uninstalled migrated Casks
2024-03-31 19:30:02 +01:00
Mike McQuaid
21dd3c263f
Merge pull request #16975 from Homebrew/ported-cmds
Begin porting non-dev commands to use AbstractCommand
2024-03-31 19:28:30 +01:00
Bo Anderson
da456da315
Merge pull request #16977 from Homebrew/cleanup-fixes
cleanup: fix various cases where cache wasn't being removed properly
2024-03-31 19:27:56 +01:00
Mike McQuaid
3e8dc3cf7d
Merge pull request #16983 from bartekpacia/fix/github_pat_finegrained
make fine-grained PATs work as $HOMEBREW_GITHUB_API_TOKEN
2024-03-31 19:26:33 +01:00
Douglas Eichelberger
914e53e9d5 Move isolated matchers into the specs that uses them 2024-03-30 20:24:06 -07:00
Douglas Eichelberger
fde7d380f7 Don't include FileUtils everywhere 2024-03-30 19:10:56 -07:00
Douglas Eichelberger
c1a4a806e1 rm unused OutputAsTTY helper 2024-03-30 18:44:39 -07:00
Douglas Eichelberger
221fde4ad8
Merge pull request #16979 from Homebrew/rspec-cleanup
Enable and fix RSpec/DescribedClassModuleWrapping
2024-03-30 18:16:26 -07:00
Douglas Eichelberger
7f78fed676 rm unnecessary description 2024-03-30 16:50:28 -07:00
Douglas Eichelberger
65f8420232 Make things private 2024-03-30 16:43:11 -07:00
Douglas Eichelberger
22bfd9b230 Port Homebrew::Cmd::Link 2024-03-30 16:24:11 -07:00
Douglas Eichelberger
8ab9d2cbad Port Homebrew::Cmd::Leaves 2024-03-30 16:16:52 -07:00
Bartek Pacia
1aa2565cd0
make fine-grained PATs work as $HOMEBREW_GITHUB_API_TOKEN 2024-03-30 22:56:48 +01:00
Douglas Eichelberger
cd2397ca2c removed unused code paths 2024-03-30 14:44:47 -07:00
Patrick Linnane
75ac45e52d
Merge pull request #16981 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-runtime-and-sorbet-static-and-runtime-0.5.11319 2024-03-30 14:10:58 -07:00
Patrick Linnane
88251708a6
Merge pull request #16982 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.21.0 2024-03-30 14:10:16 -07:00
Kevin
5128d526c5
Merge pull request #16976 from rrotter/tap-info-skip-untapped-core-taps
tap-info cmd: skip untapped core taps
2024-03-30 14:00:47 -07:00
BrewTestBot
9cd7298e15
brew vendor-gems: commit updates. 2024-03-30 20:59:52 +00:00
BrewTestBot
b40f3baf70
brew vendor-gems: commit updates. 2024-03-30 20:59:16 +00:00
dependabot[bot]
f4b5688400
build(deps-dev): bump rubocop-performance in /Library/Homebrew
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.20.2 to 1.21.0.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.20.2...v1.21.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-30 20:58:53 +00:00
dependabot[bot]
0168ad9bde
build(deps): bump sorbet-runtime and sorbet-static-and-runtime
Bumps [sorbet-runtime](https://github.com/sorbet/sorbet) and [sorbet-static-and-runtime](https://github.com/sorbet/sorbet). These dependencies needed to be updated together.

Updates `sorbet-runtime` from 0.5.11318 to 0.5.11319
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

Updates `sorbet-static-and-runtime` from 0.5.11318 to 0.5.11319
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: sorbet-static-and-runtime
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-30 20:58:22 +00:00
Douglas Eichelberger
330d209e03 Set ivars directly 2024-03-30 13:50:39 -07:00
Issy Long
3f1ae21faa
Merge pull request #16980 from Homebrew/tapioca-compiler-for-envconfig-rbi
Convert the `EnvConfig` RBI generator to a Tapioca compiler
2024-03-30 20:06:09 +00:00
Issy Long
75db3b8e21
Apply suggestions from code review
Co-authored-by: Douglas Eichelberger <697964+dduugg@users.noreply.github.com>
2024-03-30 19:54:51 +00:00
Issy Long
9dfe11870e
Convert the EnvConfig RBI generator to a Tapioca compiler 2024-03-30 18:30:20 +00:00
Douglas Eichelberger
1a95bb3b03 Enable RSpec/FilePath at SpecSuffixOnly 2024-03-30 11:29:34 -07:00
Douglas Eichelberger
03b815df82 Enable and fix RSpec/DescribedClassModuleWrapping 2024-03-30 11:29:34 -07:00
Issy Long
a3932b44c0
Merge pull request #16899 from Homebrew/tapioca-compiler-for-tty-rbi
Convert the `utils/tty` RBI generator to a Tapioca compiler
2024-03-30 18:10:41 +00:00
Issy Long
db39e939b0
Apply suggestions from code review 2024-03-30 18:00:39 +00:00
Douglas Eichelberger
0fd082a1ff Port Homebrew::Cmd::InstallCmd 2024-03-30 09:36:47 -07:00
Ryan Rotter
d856d88c17 tap-info cmd: skip untapped core taps
When homebrew/core or homebrew/cask are untapped `brew tap-info` fails because
Tap.each includes them and tap.private? fails without a git repo interrogate.

This restores the behavior of `brew tap-info` before #16710
2024-03-30 01:41:31 -04:00
Bo Anderson
58de9e0dda
cleanup: better support bottle manifests 2024-03-30 03:30:58 +00:00
Bo Anderson
92d44912e2
cleanup: better handle version_scheme scenarios 2024-03-30 03:30:31 +00:00
Bo Anderson
bb0252875e
utils/bottles: fix outdated bottle check 2024-03-30 03:29:51 +00:00
Douglas Eichelberger
d25956668d Fix tests 2024-03-29 19:12:25 -07:00
Douglas Eichelberger
d6a6742a4d Port Homebrew::Cmd::Info 2024-03-29 18:54:12 -07:00
Douglas Eichelberger
74218c0483 Port Homebrew::Cmd::Home 2024-03-29 18:53:08 -07:00
Douglas Eichelberger
d0c1af4f9e Port Homebrew::Cmd::Help 2024-03-29 18:53:08 -07:00
Douglas Eichelberger
78b259c8c6 Port Homebrew::Cmd::GistLogs 2024-03-29 18:53:08 -07:00
Douglas Eichelberger
90cd9d2e0a Port Homebrew::Cmd::FetchCmd 2024-03-29 18:53:08 -07:00
Douglas Eichelberger
f83ba58f8d Port Homebrew::Cmd::Doctor 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
67fd065e1d Port Homebrew::Cmd::Docs 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
bde44cfc99 Port Homebrew::Cmd::Developer 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
1fc4a93ca1 Port Homebrew::Cmd::Desc 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
84222ec006 Port Homebrew::Cmd::Deps 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
3615e5e648 Port Homebrew::Cmd::Config 2024-03-29 18:53:07 -07:00