1124 Commits

Author SHA1 Message Date
cnnrmnn
df0915e33f Check partial request support with Accept-Ranges 2021-05-13 12:11:34 -04:00
cnnrmnn
b9b917756c Add header parsing 2021-05-13 11:42:28 -04:00
cnnrmnn
aa989bd55a Change inititial partial request to HEAD request 2021-05-13 11:39:59 -04:00
Mike McQuaid
b914411ac8
Delete Bintray code
Remove all code related to Bintray. It no longer works so there's no
point keeping it around.

Some of this could arguably be deprecated/disabled first/instead but:
I'm not sure I see the sense in keeping stuff around that's known to be
broken.
2021-05-12 13:37:18 +01:00
Bo Anderson
92cf904719
Merge pull request #11362 from Bo98/json-tab-write
formula_installer: write tab when pouring local --only-json-tab bottles
2021-05-11 22:10:18 +01:00
Bo Anderson
33e1255f65
formula_installer: write tab when pouring local --only-json-tab bottles 2021-05-11 14:28:12 +01:00
David Xia
7920006020
fix: use recommended way of updating Fish shell $PATH
fixes https://github.com/Homebrew/brew/issues/8965

See Fish docs https://fishshell.com/docs/current/tutorial.html#path.

> A faster way is to use the `fish_add_path function`... The advantage is that
> you don't have to go mucking around in files: just run this once at the
> command line, and it will affect the current session and all future instances
> too.
>
> Or you can modify `$fish_user_paths` yourself, but you should be careful not
> to append to it unconditionally in config.fish, or it will grow longer and
> longer.
2021-05-08 21:19:19 -07:00
Bo Anderson
d15cb8a83d
utils/ruby.sh: fix Ruby path searching 2021-05-05 22:59:24 +01:00
Mike McQuaid
5d67709cb6
Merge pull request #11214 from hyuraku/utils_repair_style
Utils repair style
2021-04-23 14:17:22 +01:00
Mike McQuaid
d81b898117
utils/curl: tweak style. 2021-04-22 13:57:28 +01:00
Kenneth Chew
af594739dc
audit: specify which URL has a content problem in problem message 2021-04-22 13:52:18 +01:00
hyuraku
2b6afea8ed utils/ruby.sh: repair style 2021-04-21 22:19:35 +09:00
hyuraku
d3b07d078f utils/analytics.sh: repair style 2021-04-21 21:12:27 +09:00
hyuraku
05260f4565 utils/lock.sh: repair style 2021-04-21 20:51:50 +09:00
Dawid Dziurla
4a183cf109
Merge pull request #11158 from dawidd6/bump-fork-org
bump-formula-pr: add --fork-org flag
2021-04-17 14:18:39 +02:00
Dawid Dziurla
63be66408e
bump-formula-pr: add --fork-org flag 2021-04-17 09:53:15 +02:00
Mike McQuaid
b57fe84f81
Use long/readable tar flags.
Also, use `--no-same-permissions` instead of `-o` (which does nothing
without `-p` being passed and run as `root`) for the more explicit
description of the behaviour we want.
2021-04-16 14:05:06 +01:00
Mike McQuaid
96cd1c058e
utils/bottles: tweak/improve some of the API. 2021-04-16 14:05:05 +01:00
Bo Anderson
635e58e9aa
software_spec: fix bottle domain fallback handling 2021-04-15 19:24:25 +01:00
Mike McQuaid
75592cbebc
Better handle brew bottle --only-json-tab bottles
- test them in `brew test-bot` (before we do so in homebrew/core)
- don't fail if we cannot find the tab/install receipt in a bottle
- cache listing the files in a bottle so we don't do it more times than
  necessary
- fix resolution of version and formula names from a bottle if we're
  getting them from a bottle without a tab/install receipt

This will need to be in a tagged release before we can ship tab-less
bottles to users.
2021-04-13 14:26:31 +01:00
Mike McQuaid
6f071a06f8
Use JSON.pretty_generate
It's dramatically more human readable for very little difference in
space.
2021-04-09 15:44:37 +01:00
Mike McQuaid
1d34f7f2fa
Merge pull request #11077 from MikeMcQuaid/any_bottles
Support `all: SHA256` bottles.
2021-04-09 10:18:19 +01:00
Mike McQuaid
0cb1645d25
bottles: support :all tag.
This allows the creation of bottles which will be used by any macOS
version, architecture or OS (i.e. macOS or Linux).

Add `TODO` stubs for where the bottle generation logic should be
implemented.
2021-04-09 09:50:16 +01:00
Mike McQuaid
6b5213286c
Rename "exact" tag match to "no_older_versions"
This is more specific about the behaviour we want to have in future.
2021-04-09 09:36:18 +01:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01:00
Bo Anderson
20d86c0185
Refactor some tag handling into a Utils::Bottles::Tag class 2021-04-08 17:23:57 +01:00
Rylan Polster
95a5c58eee
Merge pull request #10847 from jonchang/github-pat-update
github/api: update personal access token format.
2021-04-05 19:43:43 -04:00
Rylan Polster
229e035a3d
Update PAT regex 2021-04-05 19:23:18 -04:00
Markus Reiter
cdcd216237
Revert "Revert "Merge pull request #10898 from reitermarkus/audit-timeout""
This reverts commit 0b8a9bc1a14d8513ab57423fe028d72a52b38b3d.
2021-04-03 20:10:33 +02:00
Markus Reiter
24c9b599a6
Revert "Revert "Merge pull request #10864 from reitermarkus/command-timeout""
This reverts commit 57b2660cae8cf43efd2b88d84a7174706328c001.
2021-04-03 20:10:32 +02:00
Bo Anderson
ec20eb604d
utils/gitub/api: fix incorrect error when unauthenticated 2021-04-02 15:36:14 +01:00
Mike McQuaid
c8aea8653a
utils/bottles: remove unused method. 2021-04-01 17:37:15 +01:00
Mike McQuaid
d8a2cf9efc
Write tabs to bottle JSON, optionally not bottle
- Write a subset of the tab required for bottles as an annotation.
- Add option on new bottle creation to skip writing tab into bottle
  and instead add it (and other useful metadata) to bottle JSON.
- Read formula information and tab from bottle JSON.
- Write prettier JSON to disk.
- Don't write `HEAD` to tab; this duplicates `HOMEBREW_VERSION`.
- Allow `brew bottle` to use `--json` to generate JSON files from a
  local bottle file.
2021-03-31 09:43:37 +01:00
Mike McQuaid
c3ea073a07
utils/gems: add dependencies to LOAD_PATH. 2021-03-29 14:26:34 +01:00
Bo Anderson
e51597b4eb
utils/gems: don't leak BUNDLE_GEMFILE 2021-03-27 02:15:56 +00:00
Bo Anderson
450bc4ab33
Fix brew style 2021-03-26 14:11:03 +00:00
Rylan Polster
57b2660cae
Revert "Merge pull request #10864 from reitermarkus/command-timeout"
This reverts commit d55bdd3ddbe7ff2b1f106a41bd994dc117ca5142, reversing
changes made to 3c3bf1c74d1d7ef1d2c792719574623b6c3c4d25.
2021-03-24 01:22:18 -04:00
Rylan Polster
0b8a9bc1a1
Revert "Merge pull request #10898 from reitermarkus/audit-timeout"
This reverts commit 6eaeba184bee5ad42269819c362ab18e9c70b3fa, reversing
changes made to 28b176567992f8d323d73a0a1367d8239e34e8a4.
2021-03-24 01:22:03 -04:00
Rylan Polster
2d3aca706d
Merge pull request #10895 from Rylan12/fix-tap-custom-remote-handling
utils/github: handle non-standard tap remotes
2021-03-22 22:28:20 -04:00
Markus Reiter
169d8aca4c Only raise Timeout::Error if timeout is specified. 2021-03-22 04:15:06 +01:00
Markus Reiter
7ad85116ef Ignore timeout when checking for HTTPS availability. 2021-03-22 03:34:35 +01:00
Rylan Polster
4e61f61a20
utils/github: handle non-standard tap remotes 2021-03-21 12:35:45 -04:00
Bo Anderson
dab04e3321
utils/popen: redirect stderr to /dev/null rather than close 2021-03-19 17:14:59 +00:00
Bo Anderson
1b61d5a563
Merge pull request #10873 from Bo98/shell_commands_cop
Promote shell commands audit to global cop
2021-03-18 20:34:15 +00:00
Bo Anderson
20ff68a425
Fix brew style. 2021-03-17 20:45:44 +00:00
Markus Reiter
712a95fdd0 Allow specifying timeouts for commands and downloads. 2021-03-16 18:15:21 +01:00
Rylan Polster
7a19eed48d
update-python-resources: include wheel in resources 2021-03-14 13:41:36 -04:00
Jonathan Chang
cd280ee52a github/api: update personal access token format.
https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
2021-03-14 18:25:38 +11:00
nandahkrishna
7b0352f167
utils/github/api: simplify pagination 2021-03-11 14:50:19 +05:30
Bo Anderson
769a6cd1f5
Don't touch PATH, GEM_HOME and GEM_PATH when testing formula 2021-03-10 17:08:57 +00:00