1738 Commits

Author SHA1 Message Date
Seeker
332778025a utils/ast: add Sorbet method signatures 2021-01-07 13:54:05 -08:00
Seeker
41e0619de8 utils: add git_repository 2021-01-07 11:45:11 -08:00
Seeker
1395259ad6 bump-*-pr: check existing PRs for exact file match 2021-01-07 09:15:42 -08:00
Mike McQuaid
8af4895479
Improve submitted analytics data
- Use default `custom-prefix` label on macOS ARM (as `/usr/local` is
  not the default).
- Add architecture (or Rosetta) to analytics event label.
- Don't send minor versions on Big Sur.
- Remove defunct `HOMEBREW_OSX_VERSION` reference.
2021-01-07 09:28:40 +00:00
Mike McQuaid
a1c97c8f3b
utils/git: quieter git --version.
Let's avoid printing this unless `--debug` (to avoid
`brew bundle check -v` outputting this).

Fixes https://github.com/Homebrew/homebrew-bundle/issues/865
2021-01-06 08:51:11 +00:00
Seeker
8828b4bd68 utils/ast: add stanza_text helper function 2021-01-03 22:26:19 -08:00
Markus Reiter
e5d656bcce Avoid unnecessary downloads in audit. 2021-01-02 11:09:01 +01:00
Seeker
6f606b4e58 bottle: check actual bottle block contents when --keep-old 2020-12-31 09:52:24 -08:00
Seeker
24636d8bea utils/ast: cleanup
- move `add_bottle_stanza!` from `Utils::Bottles` to `Utils::AST`
- add `replace_bottle_stanza!`
- simplify parameters
2020-12-29 03:40:39 -08:00
Mike McQuaid
4c1b2630dc
Fix sorbet errors. 2020-12-28 13:34:07 +00:00
Mike McQuaid
879589583d
Merge pull request #10095 from hyuraku/add-options-to-search
search: add two options
2020-12-28 13:21:10 +00:00
Rylan Polster
27ffa4e6e0 audit: fix prerelease audit 2020-12-24 13:55:16 -05:00
Rylan Polster
cb8e9a695f
Merge pull request #10087 from Rylan12/migrate-shared-audit-exceptions
audit: migrate shared audits to taps
2020-12-23 16:36:42 -05:00
hyuraku
0b574eff90 search: add two options 2020-12-23 23:06:02 +09:00
Seeker
aaf7bc2bc5 utils: add AST helper functions for editing formulae 2020-12-22 22:05:23 -08:00
Rylan Polster
da29827a87 audit: cleanup shared audit exception handling 2020-12-22 10:51:29 -05:00
Rylan Polster
ec4fe89a94 audit: migrate shared audits to taps 2020-12-21 14:45:02 -05:00
Markus Reiter
f47c1eae32
Merge pull request #10053 from miccal/shared-audits-update
shared_audits: add xit to GITHUB_PRERELEASE_ALLOWLIST
2020-12-20 09:19:29 +01:00
miccal
aad02c4524 shared_audits: add xit to GITHUB_PRERELEASE_ALLOWLIST 2020-12-20 07:15:46 +08:00
Sam Ford
e687774e8a
Curl: Allow option to omit --retry in curl_args 2020-12-19 18:11:45 -05:00
Sam Ford
9d92ed868b
Curl: Add debug parameter to curl_with_workarounds 2020-12-19 18:03:27 -05:00
Mike McQuaid
74fb058c7e
More deprecations
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Mike McQuaid
3f2afc0eb2
utils/github: tweak search_code style.
As suggested by reitermarkus in
https://github.com/Homebrew/brew/pull/10055#discussion_r545829663
2020-12-18 13:47:57 +00:00
Mike McQuaid
48c0c673f8
Fix GitHub search behaviour change
Handle the case where paths are now returned with preceding `/`.
2020-12-18 13:21:06 +00:00
Jonathan Chang
09c3058618 Remove basic authentication support for GitHub.
Since we (and GitHub) no longer support password authentication
using non-token passwords, always set the Authorization header,
rather than needlessly checking for a (possibly incorrect) username.
2020-12-17 23:09:22 +11:00
Seeker
78a02e03a9 utils/ruby: silence which errors when finding ruby 2020-12-15 16:25:50 -08:00
Seeker
85373df30e
Merge pull request #9095 from SeekingMeaning/bottle-ast
bottle: add bottle stanza by traversing AST
2020-12-11 09:05:14 -08:00
Mike McQuaid
323fec5032
utils/bottles: install bundler gems if necessary. 2020-12-11 12:26:45 +00:00
Seeker
b8aa67be5b bottle: add bottle stanza by traversing AST 2020-12-10 13:38:57 -08:00
Markus Reiter
a023b0873b Don't add headers to content in curl_http_content_headers_and_checksum. 2020-12-10 12:34:57 +01:00
Markus Reiter
a5dbba5b97 Fix curl_http_content_headers_and_checksum. 2020-12-10 07:46:41 +01:00
Maxim Belkin
15dbb0be58 utils/ruby.sh: simplify and fix Ruby-related logic
General:
- Rename `unusable_ruby` to `need_vendored_ruby` (due to code changes).

**`setup-ruby-path`** function:
- Move `-z "$HOMEBREW_RUBY_PATH"` and `-n "$HOMEBREW_FORCE_VENDOR_RUBY"` checks to `need_vendored_ruby`.

**`need_vendored_ruby`** function:
- Check `HOMEBREW_FORCE_VENDOR_RUBY` first so that it's respected even
  on Macs that are "new enough" (`HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH` is set).
- Don't check `-n $HOMEBREW_RUBY_PATH` because it is implicitly tested
  by `test_ruby`.
- Remove (now-) redundant `-z $HOMEBREW_FORCE_VENDOR_RUBY` check as it is
  tested earlier in the conditional.
2020-12-08 18:05:28 -06:00
Mike McQuaid
f7d72ae77c
ruby.sh: don't test ruby on macOS.
Instead defer to the `HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH`
variable.
2020-12-08 17:23:06 +00:00
Mike McQuaid
9b4a7856ac
Revert "RbConfig: fix broken MacOS SDK paths"
This reverts commit 11445e0f3edf29ee64081c5a05b5257d9b5ccdd9.
2020-12-08 17:14:00 +00:00
Misty De Meo
08be577d5f
Merge pull request #9452 from mistydemeo/ruby_fix_up_broken_system_headers
RbConfig: fix broken MacOS SDK paths
2020-12-07 16:18:12 -08:00
Markus Reiter
b57a448f2a Add bump-unversioned-casks command. 2020-12-07 23:03:47 +01:00
Misty De Meo
11445e0f3e RbConfig: fix broken MacOS SDK paths 2020-12-07 10:33:56 -08:00
Jonathan Chang
8b206dfa33 git_extensions: move commit_message from utils/git 2020-12-06 14:33:23 +11:00
Jonathan Chang
92d3eda914 git_extensions: move origin_branch from utils/git 2020-12-06 14:33:23 +11:00
Jonathan Chang
d802b3755a utils/git: remove redundant current_branch 2020-12-06 14:33:23 +11:00
Jonathan Chang
75be0ca4d0 git_repository: add type signatures and comments 2020-12-06 14:33:23 +11:00
Rylan Polster
22a3025f6e utils/pypi: return nil for non-pypi-packages from url 2020-12-03 15:00:30 -05:00
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes. 2020-12-02 10:43:04 +00:00
Rylan Polster
b3b6ce77d8 utils/pypi: avoid creating new string objects
Co-authored-by: Markus Reiter <me@reitermark.us>
2020-12-01 01:19:33 +01:00
Rylan Polster
4bfb390577 utils/pypi: make package name comparison case-insensitive 2020-12-01 01:19:33 +01:00
Markus Reiter
f438fa98be Avoid reinstalling bundler in integration tests. 2020-11-30 20:52:27 +01:00
Markus Reiter
0716d0bf28 Don't output “Installing 'bundler' gem” to $stdout. 2020-11-30 20:52:27 +01:00
Markus Reiter
7348185347 Reorder global. 2020-11-30 00:00:02 +01:00
Markus Reiter
3541ede927 Fix signature for update_python_resources!. 2020-11-29 22:59:10 +01:00
Markus Reiter
6750448d95 Fix some auto-correctable type errors. 2020-11-29 21:23:54 +01:00