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
Bo Anderson
30ce9b92e8
utils/gems: add installed gems to $LOAD_PATH
2021-02-28 01:28:51 +00:00
Bo Anderson
a5b12a33c2
utils/gems: use Gem API rather than ENV to set paths
2021-02-27 16:23:28 +00:00
Bo Anderson
1fba9b9b53
Prevent loading all non-Bundler gems
2021-02-26 18:23:48 +00:00
hyuraku
178ae750b9
utils/github: set default args to search_code
2021-02-26 21:31:30 +09:00
Mike McQuaid
bde83586ce
Merge pull request #10706 from MikeMcQuaid/bootsnap_tweaks
...
Improve Bootsnap behaviour
2021-02-26 10:48:38 +00:00
Bo Anderson
06381deef4
Merge pull request #10686 from Bo98/safe_fork-status
...
utils/fork: handle termsig in safe_fork
2021-02-26 04:25:54 +00:00
Mike McQuaid
60876eed88
Improve Bootsnap behaviour
...
- further refactor nested conditional to make it clearer
- allow running on Linux while still excluding Apple Silicon
- only warn on `bundle install` failures
2021-02-25 15:59:17 +00:00
Bo Anderson
f079373d8c
utils/fork: handle termsig in safe_fork
2021-02-25 13:42:44 +00:00
Mike McQuaid
f14ed4987f
Merge pull request #10679 from Bo98/unbottled
...
dev-cmd/unbottled: various improvements
2021-02-24 13:56:52 +00:00
Kenneth Chew
edead95768
utils/spdx: correctly detect non-deprecated licenses with plus
2021-02-23 16:28:24 -05:00
Bo Anderson
fb8b247db3
dev-cmd/unbottled: various improvements
...
* Ignore bottles for older macOS versions
* Ignore disabled formulae
* Ignore formulae which can't build on the chosen macOS
* Improve/fix sort description
2021-02-23 16:27:58 +00:00
Nanda H Krishna
53d840c969
Merge pull request #10635 from nandahkrishna/bump-cask-support
...
dev-cmd/bump: add cask support
2021-02-18 02:35:34 +05:30
Nanda H Krishna
7dc8025934
Merge pull request #10626 from nandahkrishna/refactor-github-api
...
utils/github: split GitHub module
2021-02-18 01:20:01 +05:30
nandahkrishna
f7c8810214
utils/github/api: remove 'api' from method names
2021-02-17 23:47:05 +05:30