32208 Commits

Author SHA1 Message Date
apainintheneck
fa43418bfb Moved autoremove logic into autoremove.rb
This allows us to call that logic internally in other brew
commands instead of having to shell out.
2022-07-13 16:31:41 -07:00
apainintheneck
74f7b604cd Changed env variable to HOMEBREW_AUTOREMOVE 2022-07-13 16:28:49 -07:00
apainintheneck
74f1eca14c autoremove.rb: moved logic out into formula.rb, and uninstall.rb
This allows us to autoremove formulae in the autoremove and
uninstall commands without having to shell out to brew.
2022-07-13 16:28:49 -07:00
apainintheneck
f8ae5f3bc4 cmd/uninstall: Add env variable that runs autoremove after uninstalls
When HOMEBREW_UNINSTALL_AUTOREMOVE is set, `brew autoremove` is run
after every successful call to `brew uninstall`.
2022-07-13 16:28:49 -07:00
Mike McQuaid
40b20dea22
Merge pull request #13554 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-0.5.10154
build(deps-dev): bump sorbet-static-and-runtime from 0.5.10152 to 0.5.10154 in /Library/Homebrew
2022-07-13 19:42:08 +01:00
BrewTestBot
672668f6c1
Update RBI files for sorbet-static-and-runtime. 2022-07-13 18:13:05 +00:00
BrewTestBot
fc5eec0849
brew vendor-gems: commit updates. 2022-07-13 18:08:38 +00:00
dependabot[bot]
4d7a644cca
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.10152 to 0.5.10154.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 18:05:46 +00:00
Rylan Polster
3d45c10f44
Merge pull request #13529 from Rylan12/on-linux-and-macos-version
Add `on_system :linux, macos:` wrapper to `OnSystem`
2022-07-13 13:36:24 -04:00
fn ⌃ ⌥
49867da232 rubocops: allow uses_from_macos "less" 2022-07-12 13:31:51 -07:00
Mike McQuaid
3689ecd244
Merge pull request #13551 from Homebrew/dependabot/bundler/Library/Homebrew/activesupport-6.1.6.1
build(deps): bump activesupport from 6.1.6 to 6.1.6.1 in /Library/Homebrew
2022-07-12 19:50:05 +01:00
Mike McQuaid
44ee5d0655
Merge pull request #13549 from Homebrew/dependabot/bundler/Library/Homebrew/nokogiri-1.13.7
build(deps): bump nokogiri from 1.13.6 to 1.13.7 in /Library/Homebrew
2022-07-12 19:42:56 +01:00
Mike McQuaid
3759e3f2ba
Merge pull request #13550 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-0.5.10152
build(deps-dev): bump sorbet-static-and-runtime from 0.5.10151 to 0.5.10152 in /Library/Homebrew
2022-07-12 19:42:42 +01:00
BrewTestBot
5056b1ec0a
Update RBI files for activesupport. 2022-07-12 18:16:04 +00:00
BrewTestBot
6ce478778b
Update RBI files for nokogiri. 2022-07-12 18:12:47 +00:00
BrewTestBot
019bad9168
brew vendor-gems: commit updates. 2022-07-12 18:10:59 +00:00
BrewTestBot
a321e1a102
brew vendor-gems: commit updates. 2022-07-12 18:07:23 +00:00
BrewTestBot
05e02ba6db
brew vendor-gems: commit updates. 2022-07-12 18:07:11 +00:00
dependabot[bot]
e33ed965a4
build(deps): bump activesupport in /Library/Homebrew
Bumps [activesupport](https://github.com/rails/rails) from 6.1.6 to 6.1.6.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.3.1/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v6.1.6...v6.1.6.1)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-12 18:04:53 +00:00
dependabot[bot]
de0b2ee6fe
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.10151 to 0.5.10152.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-12 18:04:21 +00:00
dependabot[bot]
772e14f579
build(deps): bump nokogiri from 1.13.6 to 1.13.7 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.6 to 1.13.7.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.6...v1.13.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-12 18:03:32 +00:00
Mike McQuaid
007059160f
Merge pull request #13541 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-0.5.10151
build(deps-dev): bump sorbet-static-and-runtime from 0.5.10148 to 0.5.10151 in /Library/Homebrew
2022-07-12 09:56:18 +01:00
Mike McQuaid
f77aaaba9a
Merge pull request #13542 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.19.1
build(deps): bump rubocop-ast from 1.18.0 to 1.19.1 in /Library/Homebrew
2022-07-12 09:56:06 +01:00
Mike McQuaid
de915906cf
Merge pull request #13543 from Homebrew/dependabot/bundler/Library/Homebrew/i18n-1.11.0
build(deps): bump i18n from 1.10.0 to 1.11.0 in /Library/Homebrew
2022-07-12 09:55:47 +01:00
apainintheneck
c322f4fb90 cask/installer.rb: Stopped including Staged 2022-07-11 17:13:16 -07:00
Carlo Cabrera
8b3ff3ddaa
Merge pull request #13534 from carlocab/resource-relative-target
resource: support relative paths as `targets` of `#stage`
2022-07-12 08:06:21 +08:00
Bo Anderson
45db161f41
Merge pull request #13545 from apainintheneck/fix-flaky-version-test
cask/cmd/list_spec.rb: fix leaky version variable
2022-07-12 00:49:26 +01:00
apainintheneck
ee68f813d8 cask/cmd/list_spec.rb: fix leaky version variable
The lazy evaluation in let() was failing to reset MacOS#full_version
to the original_macos_version. This meant that all tests run after
this one automatically had MacOS#version == 12 which caused some
of the tests to fail if you were running a different macOS version.
2022-07-11 15:23:31 -07:00
BrewTestBot
29a25eb7f5
Update RBI files for i18n. 2022-07-11 18:16:16 +00:00
BrewTestBot
0ba342676d
Update RBI files for rubocop-ast. 2022-07-11 18:14:13 +00:00
BrewTestBot
5b001b2719
brew vendor-gems: commit updates. 2022-07-11 18:10:10 +00:00
BrewTestBot
793183764d
brew vendor-gems: commit updates. 2022-07-11 18:09:39 +00:00
BrewTestBot
124763817e
brew vendor-gems: commit updates. 2022-07-11 18:06:30 +00:00
dependabot[bot]
ae15651eb9
build(deps): bump i18n from 1.10.0 to 1.11.0 in /Library/Homebrew
Bumps [i18n](https://github.com/ruby-i18n/i18n) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/ruby-i18n/i18n/releases)
- [Changelog](https://github.com/ruby-i18n/i18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ruby-i18n/i18n/compare/v1.10.0...v1.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 18:04:52 +00:00
dependabot[bot]
ebff222508
build(deps): bump rubocop-ast from 1.18.0 to 1.19.1 in /Library/Homebrew
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.18.0 to 1.19.1.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
- [Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-ast/compare/v1.18.0...v1.19.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 18:04:06 +00:00
dependabot[bot]
f42120c6ce
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.10148 to 0.5.10151.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 18:03:36 +00:00
danielnachun
b137d4ae00
bottle.rb: make GCC relocatable again 2022-07-11 01:25:16 -07:00
Rylan Polster
5e5c78ebef
Fix tests and improve style 2022-07-11 04:03:37 -04:00
Carlo Cabrera
62ad2d5d59
Merge pull request #13538 from carlocab/lib/lua-subdirs
keg: create subdirectories of `lib/lua` instead of symlinks
2022-07-11 15:25:44 +08:00
Mike McQuaid
4323566d20
Merge pull request #13530 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-static-and-runtime-0.5.10148
build(deps-dev): bump sorbet-static-and-runtime from 0.5.10145 to 0.5.10148 in /Library/Homebrew
2022-07-11 08:13:41 +01:00
Rylan Polster
57417dd016
Add on_system :linux, macos: wrapper to OnSystem 2022-07-11 02:19:24 -04:00
Carlo Cabrera
0780d06015
keg: create subdirectories of lib/lua instead of symlinks
Some formulae (e.g. `luv`) have a `lib/lua/5.1` subdirectory inside
their keg. Before this change, the `5.1` subdirectory is symlinked into
`HOMEBREW_PREFIX`.

This can result in `luarocks` installing things into a formula's keg,
which we don't want.

Let's fix that by making sure that `brew link` creates these
subdirectories instead of symlinking them. We already do this for
subdirectories of `share/lua`:

8dd96ae8ba/Library/Homebrew/keg.rb (L430)
2022-07-11 10:10:38 +08:00
Carlo Cabrera
a01715f0ee
resource: support relative paths as targets of #stage
`#stage` takes an optional `target` argument, which specifies the
location in which to unpack the `resource`.

Passing relative paths to `#stage`, as in

    resource("foo").stage "bar"

does not work, because this calls `Pathname("bar").install` inside the
temporary directory that the contents of the resource are unpacked to.
This means that passing a relative path to `#stage` has the unintended
effect of moving files around inside a temporary directory the formula
has no access to.

Let's fix that by keeping track of the original working directory before
`#stage` was called and prepending this to `target` whenever `target` is
a relative path.
2022-07-10 01:27:21 +08:00
Carlo Cabrera
c9af8a632d
language/python: add --install-lib to setup_install_args
About 25 formula in homebrew/core pass `--install-lib` to `python3` in
addition to `*setup_install_args` in order to ensure that all files are
installed into the formula's prefix rather than into a `site-packages`
directory in Python's keg.

Let's simplify these formulae by also adding the appropriate
`--install-lib` flag to `setup_install_args`.
2022-07-09 22:22:10 +08:00
BrewTestBot
df02f17c1c
brew vendor-gems: commit updates. 2022-07-08 18:08:51 +00:00
dependabot[bot]
75e6032cd3
build(deps-dev): bump sorbet-static-and-runtime in /Library/Homebrew
Bumps [sorbet-static-and-runtime](https://github.com/sorbet/sorbet) from 0.5.10145 to 0.5.10148.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 18:03:54 +00:00
Mike McQuaid
8dd96ae8ba
Merge pull request #13525 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.31.2
build(deps): bump rubocop from 1.31.1 to 1.31.2 in /Library/Homebrew
2022-07-08 13:07:03 +01:00
BrewTestBot
3cedf8c7bf
Update RBI files for rubocop. 2022-07-08 11:35:20 +00:00
BrewTestBot
f9a7637520
brew vendor-gems: commit updates. 2022-07-08 11:29:43 +00:00
dependabot[bot]
bf3deec7e2
build(deps): bump rubocop from 1.31.1 to 1.31.2 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.31.1 to 1.31.2.
- [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.31.1...v1.31.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 11:24:14 +00:00