1685 Commits

Author SHA1 Message Date
Michael Cho
326774faee
utils/pypi: use python from formula
Sometimes the Python dependency tree will be impacted by the exact
version of Python being used (most commonly relating to functionality
provided/missing from stdlibs like `importlib-metadata` and `tomllib`)
2023-12-19 20:09:09 -05:00
Issy Long
149b0e4f31
Fix new Style/MutableConstant RuboCop offenses for Ruby 3.1
- A follow-up to de592af20bbff5bcb548d2474f0722e59ff1129a, resetting the previous disabled comments too.
2023-12-16 11:57:06 +00:00
Bo Anderson
89531e9ff3
Update all dependencies 2023-12-15 16:24:46 +00:00
Bo Anderson
5692c8ecbf
Fix style violations under newer RuboCop 2023-12-14 05:47:12 +00:00
Douglas Eichelberger
4c96eaf56f
Update gems.rb 2023-12-12 13:39:29 -08:00
Bo Anderson
688d87e839
Remove Ruby 2.6 & macOS system Ruby support code 2023-12-12 03:44:31 +00:00
Bo Anderson
df979295a9
Merge pull request #16294 from Bo98/ruby-3.1-minimum
Require Ruby 3.1
2023-12-11 15:42:29 +00:00
Bo Anderson
03b6a83135
utils/service: assume no service system during generic OS tests 2023-12-07 20:58:01 +00:00
Bo Anderson
987ebe3d6d
Require Ruby 3.1 2023-12-05 02:31:08 +00:00
Bo Anderson
d68e3e563e
Merge pull request #16268 from Bo98/ruby3-for-all
Enable Ruby 3 for all users
2023-11-30 14:27:59 +00:00
Mike McQuaid
14a59d3884
Merge pull request #16257 from Bo98/analytics-version-fix
utils/analytics: don't fail on invalid version
2023-11-30 11:54:18 +00:00
Mike McQuaid
3e39e73287
Merge pull request #16265 from dertuxmalwieder/patch-1
Support the rc shell. Fixes #16264
2023-11-30 11:34:58 +00:00
Cthulhux
1c4c3194e6
got rid of rc_quote
The only "special" case about `rc` quoting is that strings that contain apostrophes need to contain double apostrophes instead. It seems unlikely that this will happen in Homebrew.
2023-11-29 21:40:51 +01:00
Douglas Eichelberger
1bc4e72ab9
Bump VENDOR_VERSION in gems.rb
Per the code comment, it seems I should bump this after ignoring a pair of committed vendored gems in https://github.com/Homebrew/brew/pull/16259 :

https://github.com/Homebrew/brew/pull/16259/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947R102
https://github.com/Homebrew/brew/pull/16259/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947R109
2023-11-29 10:00:51 -08:00
Bo Anderson
1f483bfe71
utils/analytics: don't fail on invalid version 2023-11-29 15:56:05 +00:00
Bo Anderson
489879ff72
Enable Ruby 3 for all users 2023-11-29 15:30:17 +00:00
Cthulhux
d26a408870
Support the rc shell. Fixes #16264
(In my tests, changes to `shellenv.sh` weren't required, so I didn't bother.)
2023-11-29 02:22:49 +01:00
Mike McQuaid
e93b0fc430
Merge pull request #16224 from Rylan12/remove-os-mac-on-linux
Deprecate `OS::Mac` on Linux
2023-11-23 12:40:22 +00:00
Bo Anderson
7a9f3eb800
utils/ruby.sh: don't _require_ 3.1 in HOMEBREW_RUBY3 mode 2023-11-21 15:03:22 +00:00
Bo Anderson
559336c771
Enable Ruby 3 for HOMEBREW_DEVELOPER 2023-11-20 20:04:18 +00:00
Rylan Polster
529f7b7953
Remove El Capitan system curl workaround 2023-11-16 11:47:48 -05:00
Rylan Polster
8704e79cc0
Separate MacOS references 2023-11-15 18:19:39 -05:00
Ruoyu Zhong
ac7a1bf775
utils/curl: fix Digest::SHA256 typo
Should fix the error seen in Homebrew/homebrew-core#153647 [^1]. This
was introduced in e5d656bcce8 and `Digest::256` seems to be the intended
one.

[^1]: https://github.com/Homebrew/homebrew-core/actions/runs/6805354565/job/18504732312?pr=153647#step:4:36
2023-11-10 23:12:08 +08:00
Mike McQuaid
e9aae0f8b0
utils/gems: improve behaviour (particularly with Ruby 3)
- Use `Tempfile.new` with a mode argument to avoid the default behaviour
  of creating a file with mode 0600 (only user-readable).
- Avoid writing the file if it already exists and the contents are
  unchanged.
2023-11-09 14:57:47 +00:00
Bo Anderson
386fd0548a
Support system Ruby 3 on Linux 2023-11-07 19:27:30 +00:00
Douglas Eichelberger
75179e9239 brew style --fix 2023-11-05 12:18:31 -08:00
Douglas Eichelberger
0191af7899 resolve typecheck errors 2023-11-05 08:55:58 -08:00
Bo Anderson
a339b912c0
utils/gems: make .homebrew_gem_groups writing atomic 2023-10-30 20:58:44 +00:00
Bo Anderson
4ec450823c
Portable Ruby 3.1.4 (opt-in beta) 2023-10-27 15:58:43 +01:00
Bo Anderson
141ac157fd
Merge pull request #16126 from chenrui333/github/use-new-archive-urls
audit(github): prefer `/archive/refs/tags` urls over `/archive`
2023-10-24 18:48:03 +01:00
Bo Anderson
de83bc69e0
Implement equality functions for BottleSpecification 2023-10-23 16:17:31 +01:00
Rui Chen
a496f6708e
audit(github): prefer /archive/refs/tags urls over /archive
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-23 11:00:27 -04:00
Bo Anderson
e80bb70bed
Add retries to some online audit checks 2023-10-14 17:43:18 +01:00
Bo Anderson
900d867345
utils/gems: fix Sonoma compatibility check 2023-10-13 00:02:06 +01:00
Mike McQuaid
a0805d8678
Merge pull request #16059 from MikeMcQuaid/whoami
Improve use of `whoami`
2023-10-01 16:04:00 +01:00
Mike McQuaid
39bbc33a27
Improve use of whoami
If you're e.g. running Homebrew over `sudo`: shelling out to `whoami`
is less effective than just telling people which user you're running
as when we run the check.
2023-09-29 12:32:22 +01:00
Bo Anderson
71f558229a
Test on Ruby 3.1 2023-09-29 04:46:16 +01:00
Bo Anderson
0c08a3cccb
Improve performance of Formula#to_hash 2023-09-28 14:07:25 +01:00
Bo Anderson
22cb5dbf02
utils/gems: redirect bundler output to stderr 2023-09-27 20:05:03 +01:00
Bo Anderson
582049454f
vendor/bundle/ruby: cleanup unneeded files 2023-09-26 18:39:57 +01:00
apainintheneck
85bd4c7e1f utils/backtrace: scrub sorbet-runtime from backtrace
Ever since we started using this at runtime it's been polluting
the backtrace output. This makes it harder to debug errors and
increases the amount of info users have to paste into the box
when filing an issue.

This is a very direct approach. Essentially, we strip out
everything related to the `sorbet-runtime` gem whenever the top
line in the backtrace is unrelated to sorbet-runtime.

The hope is that this will allow errors related to sorbet to
be diagnosed easily while also reducing the backtrace size
for all other types of errors.

Sometimes it is useful to see the full backtrace though.
For those cases, we include the full backtrace when
`--verbose` is passed in and print a warning that the
Sorbet lines have been removed from the backtrace the
first time they are removed.

Note: This requires gems to be set up so that the call to
`Gem.paths.home` works correctly. For that reason, it must
be included after `utils/gems` which is included in
`standalone/load_path` already.
2023-09-21 21:07:22 -07:00
Bo Anderson
dd17799d0a
utils/gems: don't allow Sorbet to install on Sonoma's system Ruby 2023-09-13 19:14:18 +01:00
Mike McQuaid
b415a0dba6
Merge pull request #15952 from Bo98/gemgroup-file
Move gem group setting to separate, cacheable file
2023-09-13 14:25:59 +01:00
Bo Anderson
9cf0d34ee0
Move gem group setting to separate, cacheable file 2023-09-13 14:04:13 +01:00
Mike McQuaid
0454669656
utils/shared_audits: handle 404 metadata errors from GitLab API.
Fixes #15995.
2023-09-13 09:31:34 +01:00
Eric Knibbe
931f762598
docs+rubydoc: various grammar/wording fixes 2023-09-11 02:26:37 -04:00
Mike McQuaid
8c1c0c5a22
utils/github: fully scope curl usage.
Fixes #15965
2023-09-05 17:07:59 -04:00
Mike McQuaid
e02ec5e07a
Merge pull request #15961 from MikeMcQuaid/fix_missing_curl
utils/github/artifacts: fix missing Utils::Curl reference.
2023-09-05 08:07:09 -04:00
Mike McQuaid
84973da037
utils/github/artifacts: fix missing Utils::Curl reference.
Needed after https://github.com/Homebrew/brew/pull/15940
2023-09-05 07:52:39 -04:00
Mike McQuaid
b7114651ac
utils/curl: include or use explicitly.
Include or use `Utils::Curl` explicitly everywhere it is used.
2023-09-04 22:17:57 -04:00