816 Commits

Author SHA1 Message Date
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
Dustin Rodrigues
97933d9a17 pypi: downcase main package name prior to seeing if it should be excluded 2020-11-29 09:34:00 -05:00
Mike McQuaid
9bd312bab2
Merge pull request #9267 from reitermarkus/macos-version-11.1
Handle macOS versions >= 11.1 correctly.
2020-11-25 14:36:01 +00:00
Mike McQuaid
db33c9a2a0
Merge pull request #9209 from MikeMcQuaid/deprecations
Deprecations for Homebrew 2.6.0
2020-11-25 08:49:52 +00:00
Rylan Polster
737d9b698b fix update-python-resources for formulae not in a tap 2020-11-24 16:52:29 -05:00
Rylan Polster
b2e25d12aa utils/pypi: refactor package handling 2020-11-24 15:40:15 -05:00
Rylan Polster
ee47b863c4 move mapping from formula_lists to pypi_formula_mappings 2020-11-24 15:40:15 -05:00
Rylan Polster
fac2bd8843 use auto update list when --print-only is passed 2020-11-24 15:40:15 -05:00
Rylan Polster
51a1b7c9e1 move pypi list to tap formula_lists directory 2020-11-24 15:40:15 -05:00
Rylan Polster
8e670995f8 migrate automatic python resource list to Homebrew/core 2020-11-24 15:40:15 -05:00
Mike McQuaid
d496f5c121
Deprecations for Homebrew 2.6.0
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.

Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Michka Popoff
1fc3d22ab4 pr-pull: allow to pull from multiple workflows
and allow to skip missing workflows

Can be used like this:
brew pr-pull --workflows=tests.yml,wheezy_tests.yml --ignore-missing-artifacts=wheezy_tests.yml PRNUMBER
2020-11-24 15:46:44 +01:00
Markus Reiter
8598b1186a Handle macOS versions >= 11.1 correctly. 2020-11-23 13:46:15 +01:00
Markus Reiter
0424940496 Add types for ENV extensions. 2020-11-23 02:06:37 +01:00
Vítor Galvão
9f9eaa3e6e Remove amd-power-gadget from prerelease exceptions 2020-11-21 19:01:18 +00:00
Markus Reiter
220b4606ca Add type signatures to GitHub::Actions. 2020-11-19 16:07:50 +01:00
Markus Reiter
60d1246cb7 Add type signatures to Utils::Shebang. 2020-11-19 16:07:50 +01:00
miccal
42881ebc55 shared_audits: add haptickey to GITHUB_PRERELEASE_ALLOWLIST 2020-11-18 06:54:24 +08:00
Rylan Polster
e14ce96f22 pr-pull: skip bottles for CI-syntax-only PRs 2020-11-14 02:52:43 -05:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Markus Reiter
5bc626bbe1 Completely deprecate Homebrew.args. 2020-11-11 08:52:55 +01:00
Jonathan Chang
500908ee6f rubocop: fix Lint/NoReturnInBeginEndBlocks 2020-11-10 23:28:31 +11:00
Jonathan Chang
ad44a83b72 inreplace: fix typecheck error 2020-11-08 23:25:52 +11:00