25606 Commits

Author SHA1 Message Date
Mike McQuaid
683ae7ff53
Add HOMEBREW_BOOTSNAP to optionally use Bootsnap
> Bootsnap is a library that plugs into Ruby, with optional support
> for ActiveSupport and YAML, to optimize and cache expensive
> computations.
https://github.com/Shopify/bootsnap

For our case that translates to "repeated calls to `brew` have
reductions in the time spend `require`ing speeding up the process
boot time".

For example:

```
$ hyperfine --warmup=2 "unset HOMEBREW_BOOTSNAP; brew info wget" "export HOMEBREW_BOOTSNAP=1; brew info wget"
Benchmark #1: unset HOMEBREW_BOOTSNAP; brew info wget
  Time (mean ± σ):      2.417 s ±  0.032 s    [User: 659.0 ms, System: 855.5 ms]
  Range (min … max):    2.382 s …  2.464 s    10 runs

Benchmark #2: export HOMEBREW_BOOTSNAP=1; brew info wget
  Time (mean ± σ):      1.862 s ±  0.064 s    [User: 425.3 ms, System: 566.8 ms]
  Range (min … max):    1.736 s …  1.952 s    10 runs

Summary
  'export HOMEBREW_BOOTSNAP=1; brew info wget' ran
    1.30 ± 0.05 times faster than 'unset HOMEBREW_BOOTSNAP; brew info wget'
```
2021-01-21 12:34:04 +00:00
Mike McQuaid
c7e9fdc839
Merge pull request #10384 from MikeMcQuaid/exceptions-termsig
exceptions: more handling of nil status.
2021-01-21 12:08:36 +00:00
Mike McQuaid
91759ac3c3
Merge pull request #10226 from hyuraku/completions/zsh_add-cask-option
completions/zsh: add-cask-option
2021-01-21 12:08:11 +00:00
Dawid Dziurla
75760977bd
Merge pull request #10385 from MikeMcQuaid/arm-install-bundler-gems
install-bundler-gem: allow on ARM.
2021-01-21 11:35:20 +01:00
Mike McQuaid
8cb2cc4bcc
install-bundler-gem: allow on ARM.
Needed for CI:
https://github.com/Homebrew/homebrew-core/pull/69460/checks?check_run_id=1740727396#step:6:32
2021-01-21 10:02:57 +00:00
hyuraku
7e2db0cd3d completions/zsh: add-cask-option 2021-01-21 18:38:34 +09:00
Mike McQuaid
7360880780
Merge pull request #10375 from MikeMcQuaid/dev-cmd-arm
dev-cmd: disable when broken on Apple Silicon.
2021-01-21 09:01:16 +00:00
Mike McQuaid
e22f5f62d3
Merge pull request #10361 from tlk/patch-1
Clarification on the use of `:optional` and `:recommended`
2021-01-21 09:00:19 +00:00
Mike McQuaid
51b149b8ee
exceptions: more handling of nil status.
This was occurring on ARM CI.
2021-01-21 08:30:36 +00:00
Seeker
4b5b1f61a3
Merge pull request #10365 from SeekingMeaning/git-repo-shared-examples
git_repository_spec: group together shared examples
2021-01-20 16:32:25 -08:00
Mike McQuaid
ea1affb658
Merge pull request #10373 from davidbailey00/patch-1
Suggest alternative method for enabling ZSH completions
2021-01-20 17:05:32 +00:00
Thomas L. Kjeldsen
72b29b2b2b Clarification on the use of :optional and :recommended 2021-01-20 16:54:10 +01:00
Seeker
e42e98108b
Merge pull request #10348 from SeekingMeaning/livecheck-actual-version
livecheck: compare actual version for casks
2021-01-20 07:44:33 -08:00
David Bailey
39cdf234a2
Remove diff formatting (keep only relevant line) + clarify to append the line after initialization 2021-01-20 15:30:03 +00:00
David Bailey
a04b4890a9
Remove unneeded export
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-01-20 15:24:51 +00:00
Rylan Polster
e172f0704e
Merge pull request #10360 from Rylan12/bash-completions-files
completions: complete files where appropriate in bash
2021-01-20 09:19:25 -05:00
Mike McQuaid
3bc31d40bd
dev-cmd: disable when broken on Apple Silicon.
This is better than users getting a weird error.
2021-01-20 14:07:44 +00:00
David Bailey
5bb1556246 Suggest alternative method for enabling ZSH completions 2021-01-20 12:28:49 +00:00
Dustin Rodrigues
7242cd6474
Merge pull request #10357 from dtrodrigues/andor
rubocop: disallow and/or in favor of &&/||
2021-01-19 21:15:00 -05:00
Seeker
94f560f175
Merge pull request #10362 from tlk/patch-2
Replace :x11 symbol as it is no longer available
2021-01-19 16:10:54 -08:00
Seeker
64c2b21c2f git_repository_spec: group together shared examples 2021-01-19 12:32:20 -08:00
Seeker
152eac333b
Merge pull request #10358 from SeekingMeaning/mac-version-named-captures
os/mac/version: use named captures in regex
2021-01-19 10:51:52 -08:00
Seeker
6e6c33972e
Merge pull request #10331 from SeekingMeaning/version-typecheck
version: enable Sorbet type checking
2021-01-19 10:01:56 -08:00
Seeker
32ebc02f2f version: enable Sorbet type checking 2021-01-19 09:28:37 -08:00
Rylan Polster
8c48547f0b
Merge pull request #10333 from Rylan12/external-command-docs
docs: update external command documentation
2021-01-19 11:55:00 -05:00
Michka Popoff
1c027f940f
Merge pull request #10186 from iMichka/bottle-cellar
bottle: tag specific cellars
2021-01-19 17:05:36 +01:00
Dustin Rodrigues
3e074419d7
Merge pull request #10356 from dtrodrigues/pypi-extra
pypi: allow packages in global exclude list if explicitly requested
2021-01-19 10:30:35 -05:00
Thomas L. Kjeldsen
c10e18c06e
Replace :x11 symbol as it is no longer available
The :x11 symbol was deprecated in 87dd13aea6
2021-01-19 13:53:12 +01:00
Seeker
50cd836427
Merge pull request #10351 from SeekingMeaning/sig-braces
rubocop: require braces for Sorbet `sig`
2021-01-19 03:50:20 -08:00
Michka Popoff
3eea1434cc bottle: tag specific cellars 2021-01-19 10:14:25 +01:00
Mike McQuaid
33dafa4498
Merge pull request #10344 from vitorgalvao/no-github-appcast-audit
Cask: audit: Do not require appcast on GitHub releases
2021-01-19 08:41:29 +00:00
Rylan Polster
4ef8c8279f
completions: complete files where appropriate in bash 2021-01-19 01:03:05 -05:00
Rylan Polster
67ca8f54a2
Merge pull request #10342 from Rylan12/command-usage-text
Generate command usage text
2021-01-18 21:52:19 -05:00
Rylan Polster
862ffb6e8b
Updates after rebase on latest master
I didn't resolve the merge conflict correctly, I believe
2021-01-18 21:29:21 -05:00
Rylan Polster
1e4fef8123
usage string generator: fix handling of dashed-commands 2021-01-18 21:20:12 -05:00
Rylan Polster
c8d32ff75a
Updates after rebase on latest master 2021-01-18 21:20:12 -05:00
Rylan Polster
1e5a43d5f3
parser: fix tests 2021-01-18 21:20:11 -05:00
Rylan Polster
a9a0c415e7
Cleanup usage strings for flags 2021-01-18 21:20:11 -05:00
Rylan Polster
6f69aab6cf
Cleanup usage string
Include only global args and list the specific options if there are two or fewer.
2021-01-18 21:20:11 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Rylan Polster
b7977244ea
parser: automatically generate usage banners 2021-01-18 21:16:24 -05:00
Dawid Dziurla
893ec3284f
Merge pull request #10359 from dtrodrigues/man-link
completions: remove link
2021-01-19 02:53:17 +01:00
Dustin Rodrigues
1b828f4b4a completions: remove link 2021-01-18 20:27:18 -05:00
Dawid Dziurla
1525350709
Merge pull request #10350 from issyl0/brew-man-remove-link-flag
dev-cmd/man: Completely remove `--link`
2021-01-19 01:54:01 +01:00
Seeker
fbafaff4fe rubocop: require braces for Sorbet sig 2021-01-18 16:52:45 -08:00
Seeker
20eaf43836
Merge pull request #10346 from SeekingMeaning/git-repository-safe
git_repository: raise error instead of returning nil if `safe`
2021-01-18 16:48:14 -08:00
Dustin Rodrigues
59b8e27998 rubocop: disallow and/or in favor of &&/|| 2021-01-18 14:16:56 -05:00
Seeker
e8667b609c
Merge pull request #10341 from SeekingMeaning/rubocops-formula-helper-functions
rubocops: move some methods from FormulaCop to HelperFunctions
2021-01-18 10:57:13 -08:00
Seeker
a272d97b2a
Merge pull request #10339 from SeekingMeaning/sorbet-upstream
sorbet: delete local fixes that have been merged upstream
2021-01-18 10:56:45 -08:00
Dustin Rodrigues
d87844ae8b pypi: allow packages in global exclude list if explicitly requested 2021-01-18 13:36:48 -05:00