21296 Commits

Author SHA1 Message Date
Rylan Polster
b5dec5fdbd
style: temporarily disable GitLab patch URL check 2021-04-19 09:13:06 -04:00
Jonathan Chang
ef1e07b88b
rubocops/patches: GitLab patches should use .diff
Only `.diff` URLs return output comparable to the diffs from
`git diff --full-index`. While the extra metadata from `.patch` is
nice, the instability of the patch contents is undesirable.

Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2021-04-19 09:08:14 -04:00
Nanda H Krishna
4a608a7ac6
Merge pull request #11170 from nandahkrishna/revert-patch-autocorrect
rubocops/patches: remove autocorrection of some `url`s
2021-04-19 18:32:49 +05:30
Dawid Dziurla
ee841f11df
bump-cask-pr: add --fork-org flag 2021-04-18 20:53:01 +02: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
Markus Reiter
9bb1ba324f
Always take latest item in Sparkle strategy. 2021-04-17 01:32:19 +02:00
Bo Anderson
842a2ea890
Merge pull request #11159 from Bo98/cmake-no-tests
formula: add `-DBUILD_TESTING=OFF` to `std_cmake_args`
2021-04-16 23:32:24 +01:00
Nanda H Krishna
1c2d76c4e4
rubocops/patches: remove autocorrection of some URLs 2021-04-17 01:44:28 +05:30
Issy Long
a328acc9a1
rubocops/patches: Fix quoting of the patch url when autocorrecting
- The autocorrections here before were leading to changes like:

```
➜ brew style --fix brewsci/science/beetl
Formula/beetl.rb:15:11: C: [Corrected] GitHub patches should use the full_index parameter: https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end

```

- This fixes the URLs generated to have quotes:

```
➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1"
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end
```
2021-04-16 19:41:02 +01:00
Mike McQuaid
08b848044e
Revert "dev-cmd/bottle: set uid/gid." 2021-04-16 16:58:21 +01:00
Mike McQuaid
7a23bd3ecd
dev-cmd/bottle: set uid/gid.
This is a more complete version of `--numeric-owner`.
2021-04-16 15:26:24 +01:00
Mike McQuaid
2b34ecfe18
Merge pull request #11163 from Bo98/bottle-filename
dev-cmd/bottle: revert filename in JSON to use single dash always
2021-04-16 14:30:46 +01:00
Mike McQuaid
4a0b860973
dev-cmd/bottle: improve reproducibility, comment.
Setting a consistent owner/group results in more consistent bottles.
2021-04-16 14:05:06 +01: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
Mike McQuaid
a28dda5062
bottle: remove GitHub Packages bulk upload logic. 2021-04-16 14:05:05 +01:00
Bo Anderson
1d896e36a1
Merge pull request #11162 from Bo98/autoupdate-workaround
brew.sh: add workaround for old auto-updates
2021-04-16 13:12:54 +01:00
Bo Anderson
b5ccad093d
dev-cmd/bottle: revert filename in JSON to single dash
Fixes #11136.
2021-04-16 13:04:34 +01:00
Bo Anderson
7c9053753f
brew.sh: add workaround for old auto-updates 2021-04-16 12:32:34 +01:00
Sean Molenaar
0e93f728a6
Service: generate systemd unit file 2021-04-16 08:58:49 +02:00
Nanda H Krishna
ba578f4ae2
Merge pull request #11161 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2021-04-16 06:17:10 +05:30
Miccal Matthews
b29c636d3c
Merge pull request #11146 from reitermarkus/sparkle-first
Always take first item in `Sparkle` strategy.
2021-04-16 08:44:49 +08:00
BrewTestBot
b3c82ae1cf
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-04-16 00:20:10 +00:00
Bo Anderson
0db7c0ba8a
formula: add -DBUILD_TESTING=OFF to std_cmake_args 2021-04-15 23:07:18 +01:00
Bo Anderson
f904d63e04
Merge pull request #11157 from Bo98/bottle-domain-fallback
software_spec: fix bottle domain fallback handling
2021-04-15 20:02:54 +01:00
Bo Anderson
635e58e9aa
software_spec: fix bottle domain fallback handling 2021-04-15 19:24:25 +01:00
Mike McQuaid
160c8d8ebc
Merge pull request #11141 from Bo98/source_date_epoch
build: set SOURCE_DATE_EPOCH
2021-04-15 19:11:04 +01:00
Mike McQuaid
1a04490a2a
Merge pull request #11139 from MikeMcQuaid/quieter_settings
settings: use quieter `system_command!`
2021-04-15 17:05:12 +01:00
Markus Reiter
bbf8a10f2c
Always take first item in Sparkle strategy. 2021-04-15 01:15:59 +02:00
Bo Anderson
6c687fd8ba
dev-cmd/bottle: fix INSTALL_RECEIPT appearing in changed_files 2021-04-14 21:43:37 +01:00
Bo Anderson
1a81257721
build: set SOURCE_DATE_EPOCH 2021-04-14 17:43:26 +01:00
Mike McQuaid
bc9b98aa0b
Merge pull request #11131 from MikeMcQuaid/only_json_tab_handling
Better handle `brew bottle --only-json-tab` bottles
2021-04-14 14:27:38 +01:00
Mike McQuaid
a74d6060f3
settings: use quieter system_command!
`safe_system` always outputs what it's running which isn't necessary in
this case.
2021-04-14 14:21:16 +01:00
Mike McQuaid
b153620f63
Merge pull request #11138 from Bo98/io-read
Use File.read over IO.read
2021-04-14 13:30:50 +01:00
Bo Anderson
1feed79e69
Use File.read over IO.read 2021-04-14 12:42:26 +01:00
EricFromCanada
bb26935344
create: improve cask token & version generation 2021-04-13 15:45:30 -04: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
hyuraku
705995c1c3 repair variables 2021-04-13 22:23:32 +09:00
hyuraku
ee511e4c0c delete useless variable 2021-04-13 22:23:32 +09:00
hyuraku
d63a0ebd7b .simplecov: delete private method 2021-04-13 22:23:32 +09:00
Mike McQuaid
632e4d6579
Merge pull request #11125 from chrisayoub/master
Fix regression with bottle URLs in `brew info` JSON output
2021-04-13 12:50:16 +01:00
Nanda H Krishna
ecef4889f8
Merge pull request #11122 from nandahkrishna/fix-tap-new
tap-new: fix invalid tap name message
2021-04-13 17:17:24 +05:30
Mike McQuaid
a4ea7fb279
Merge pull request #11126 from Bo98/bottle-domain-env
brew.sh: remove problematic HOMEBREW_BOTTLE_DOMAIN export
2021-04-13 12:05:02 +01:00
Mike McQuaid
dbe2a96860
Merge pull request #11105 from GauthamGoli/test-auto-cp-bash
Use `shellcheck` on Bash completion file
2021-04-13 12:02:14 +01:00
Bo Anderson
ad22854bcb
brew.sh: remove problematic HOMEBREW_BOTTLE_DOMAIN export
Partially fixes #11123.
2021-04-13 03:54:32 +01:00
Chris Ayoub
7c16da70ac Fix regression with bottle URLs in brew info JSON output 2021-04-12 21:41:42 -04:00
Nanda H Krishna
beed30f359
tap-new: fix invalid tap name message 2021-04-13 02:43:38 +05:30
Bo Anderson
c972d330cb
Update Big Sur runner labels 2021-04-12 21:20:19 +01:00
Michka Popoff
f1c08c3801
Merge pull request #11118 from Bo98/ghp-manifest-unknown
github_packages: handle "manifest unknown"
2021-04-12 20:26:05 +02:00