36648 Commits

Author SHA1 Message Date
Carlo Cabrera
bcbb969796
bin/brew: avoid eval and grep
`eval` is a much bigger hammer than we need here, so let's try to avoid
that.

Also, we can use the builtin `read` instead of shelling out to `grep`
which will be slightly more efficient.
2023-08-04 22:00:46 +08:00
Mike McQuaid
4877de52d3
Merge pull request #15819 from MikeMcQuaid/bottle_reproducibility_fixes
bottle: reproducibility fixes.
2023-08-04 10:26:55 +01:00
Mike McQuaid
71888db8ba
bottle: reproducibility fixes.
I noticed from
https://github.com/Homebrew/homebrew-core/actions/runs/5751070010 that
we're no longer creating reproducible bottles between macOS and Linux.

All macOS checksums have changed but Linux ones have not. The main
difference between the two platforms is the `gtar` version used so let's
always just use the formula on both platforms.

While we're here, clear up the ordering and comments a little on the
reproducible `tar` arguments so that it's easier to compare with the
reproducible builds archives documentation.
2023-08-04 10:02:44 +01:00
Mike McQuaid
5c718b5dfd
Merge pull request #15820 from MikeMcQuaid/more_quiet_env_hints
Make more warnings quiet with environment hints disabled.
2023-08-04 09:49:45 +01:00
Mike McQuaid
1d4a24d226
Make more warnings quiet with environment hints disabled.
Combined with https://github.com/Homebrew/homebrew-test-bot/pull/963
this should make `brew test-bot` output a bit quieter and less annoying.
2023-08-04 09:36:27 +01:00
Mike McQuaid
ef4731d67a
Merge pull request #15818 from MikeMcQuaid/brew_env_home
bin/brew: handle missing `$HOME`.
2023-08-04 09:21:36 +01:00
Mike McQuaid
59ea118991
bin/brew: handle missing $HOME.
Try to build it using `$USER` or `$LOGNAME` and, if both are missing,
just give up.
2023-08-04 08:30:37 +01:00
Mike McQuaid
11af9e8a1e
Merge pull request #15805 from ZhongRuoyu/formulary-alias_path
formulary: fix type of `alias_path`
2023-08-04 08:10:57 +01:00
Mike McQuaid
0e098510c2
Merge pull request #15763 from razvanazamfirei/bump-add-arch-support
bump: add arch-specific support
2023-08-04 08:10:01 +01:00
Mike McQuaid
41ca77c6ac
Merge pull request #15817 from ZhongRuoyu/development_tools-locate
development_tools: allow `Symbol`s to be `locate`d
2023-08-04 08:04:32 +01:00
Ruoyu Zhong
99607e8ec4
development_tools: allow Symbols to be located
Fixes error seen in Homebrew/homebrew-core#138452.
`DevelopmentTools.default_compiler` can return a `Symbol` like `:clang`.
Make sure its result can be fed to `DevelopmentTools.locate`.

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-08-04 11:26:30 +08:00
Mike McQuaid
a2b49440e7
Merge pull request #15815 from Homebrew/dependabot/bundler/Library/Homebrew/addressable-2.8.5
build(deps): bump addressable from 2.8.4 to 2.8.5 in /Library/Homebrew
2023-08-03 19:33:37 +01:00
Mike McQuaid
087a4871af
Merge pull request #15814 from Homebrew/dependabot/bundler/Library/Homebrew/zeitwerk-2.6.11
build(deps): bump zeitwerk from 2.6.10 to 2.6.11 in /Library/Homebrew
2023-08-03 19:31:53 +01:00
BrewTestBot
3fb4c6c069
Update RBI files for addressable.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-08-03 18:17:42 +00:00
BrewTestBot
e590c30851
Update RBI files for zeitwerk.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-08-03 18:15:55 +00:00
BrewTestBot
b281f51c25
brew vendor-gems: commit updates. 2023-08-03 18:11:46 +00:00
BrewTestBot
ce1818df99
brew vendor-gems: commit updates. 2023-08-03 18:09:53 +00:00
dependabot[bot]
783d30855b
build(deps): bump addressable from 2.8.4 to 2.8.5 in /Library/Homebrew
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.8.4 to 2.8.5.
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.8.4...addressable-2.8.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 18:08:20 +00:00
dependabot[bot]
6b5aa4d1ed
build(deps): bump zeitwerk from 2.6.10 to 2.6.11 in /Library/Homebrew
Bumps [zeitwerk](https://github.com/fxn/zeitwerk) from 2.6.10 to 2.6.11.
- [Changelog](https://github.com/fxn/zeitwerk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.6.10...v2.6.11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 18:05:43 +00:00
Mike McQuaid
6b2876c0e8
Merge pull request #15812 from Homebrew/revert-15807-static-inreplace
Revert "Make `inreplace` a purely static method"
2023-08-03 17:36:52 +01:00
Alexander Bayandin
8656caa67c
Revert "Make inreplace a purely static method" 2023-08-03 16:16:19 +01:00
Razvan Azamfirei
3949138d5b
format bump block 2023-08-03 09:58:59 -04:00
Razvan Azamfirei
2d330bcd32
bump: add arch-specific support 2023-08-03 09:41:01 -04:00
Mike McQuaid
24b6b3494d
Merge pull request #15810 from MikeMcQuaid/pkg_require_clt
package/Distribution: always require CLT.
2023-08-03 12:21:20 +01:00
Mike McQuaid
39dc5652aa
package/Distribution: always require CLT.
We always require it in `install.sh` and we need it for all but the
latest version of macOS so this seems a simpler compromise.

Fixes #15802
2023-08-03 11:42:06 +01:00
Mike McQuaid
3ced9156da
Merge pull request #15807 from dduugg/static-inreplace
Make `inreplace` a purely static method
2023-08-03 10:47:10 +01:00
Douglas Eichelberger
da33049c69 Resolve Style/OptionalBooleanParameter violation 2023-08-02 14:47:06 -07:00
Douglas Eichelberger
2ad87f87d5 Make inreplace a purely static method 2023-08-02 09:44:18 -07:00
Ruoyu Zhong
26f8f27b3c
formulary: fix type of alias_path
`Formulary.from_rack` only allows `alias_path` to be a `Pathname`. Make
it happy with `String`s too.

Fixes:

    $ brew test openssl
    Error: Parameter 'alias_path': Expected type Pathname, got type String with value "/usr/local/Homebrew/Librar...homebrew-core/Aliases/openssl"
    Caller: /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:113
    Definition: /usr/local/Homebrew/Library/Homebrew/formulary.rb:787

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
2023-08-02 22:49:39 +08:00
Mike McQuaid
5183103d5d
Merge pull request #15806 from EricFromCanada/repology-api-url
utils/repology: update API URL
2023-08-02 14:37:40 +01:00
Eric Knibbe
31a5df4bf2
extend/kernel: convert TTY-destined input to string 2023-08-02 09:22:15 -04:00
Eric Knibbe
c1fe80ac82
utils/repology: update API URL 2023-08-02 09:02:44 -04:00
Mike McQuaid
d2863d05b3
Merge pull request #15740 from EricFromCanada/tap-suggestion
dev-cmd/edit: suggest tapping core repositories if untapped
2023-08-02 09:04:43 +01:00
Eric Knibbe
b3ecd91f97
dev-cmd/edit: suggest tapping core repositories 2023-08-01 13:39:28 -04:00
Mike McQuaid
799417343a
Merge pull request #15800 from dduugg/inreplace-paths
Narrow member type of inreplace paths enumerable
2023-08-01 17:46:36 +01:00
Mike McQuaid
8a74f83223
Merge pull request #15799 from MikeMcQuaid/deprecate_postgresql_upgrade_database
Deprecate `postgresql-upgrade-database`
2023-08-01 17:34:29 +01:00
Douglas Eichelberger
b26c0917c7 Widen collection type in super call 2023-08-01 09:33:04 -07:00
Douglas Eichelberger
8d8dac0de4 Narrow member type of inreplace paths enumerable 2023-08-01 09:22:48 -07:00
Mike McQuaid
e3c0faf4e2
Merge pull request #15787 from MikeMcQuaid/env_file_configuration
Allow configuring Homebrew with `.env` files
2023-08-01 13:07:19 +01:00
Mike McQuaid
04e07dc0db
Deprecate postgresql-upgrade-database
This is an out-of-band deprecation but this command is broken and we're
not going to fix it so it's not really worth a deprecation cycle.

See https://github.com/orgs/Homebrew/discussions/4685
2023-08-01 12:00:30 +01:00
Mike McQuaid
54a3907aac
Merge pull request #15796 from dduugg/widen-inreplace
Widen paths type in Formula#inreplace
2023-08-01 08:30:12 +01:00
Carlo Cabrera
fad5e98e7d
Merge pull request #15797 from Homebrew/dependabot/bundler/Library/Homebrew/zeitwerk-2.6.10
build(deps): bump zeitwerk from 2.6.9 to 2.6.10 in /Library/Homebrew
2023-08-01 13:08:57 +08:00
Carlo Cabrera
5669df9083
Merge pull request #15798 from Homebrew/sponsors-maintainers-man-completions 2023-08-01 10:34:34 +08:00
BrewTestBot
d5f1822a5d
Update sponsors.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2023-08-01 00:06:21 +00:00
BrewTestBot
6e505e6313
Update RBI files for zeitwerk.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-07-31 19:06:16 +00:00
BrewTestBot
8b7a75f00e
brew vendor-gems: commit updates. 2023-07-31 19:00:30 +00:00
dependabot[bot]
dbf1d63441
build(deps): bump zeitwerk from 2.6.9 to 2.6.10 in /Library/Homebrew
Bumps [zeitwerk](https://github.com/fxn/zeitwerk) from 2.6.9 to 2.6.10.
- [Changelog](https://github.com/fxn/zeitwerk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.6.9...v2.6.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 18:56:52 +00:00
Mike McQuaid
1b6c46ff12
Merge pull request #15795 from Homebrew/build_pkg_gh
workflows/build-pkg: install `gh`.
2023-07-31 19:43:17 +01:00
Douglas Eichelberger
da8a062cfc Widen paths type in Formula#inreplace 2023-07-31 11:31:35 -07:00
Mike McQuaid
80ab86ce2c
workflows/build-pkg: install gh.
Now that we're nuking and reinstalling Homebrew: need to install this
too.
2023-07-31 19:29:10 +01:00