26869 Commits

Author SHA1 Message Date
BrewTestBot
41c935bb76
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-11-05 00:32:36 +00:00
Bo Anderson
5468c2d642
Merge pull request #14092 from moabits/master
caveats: Update message displayed by unsigned_accessibility
2022-11-04 20:32:44 +00:00
Bo Anderson
5fb368d9b8
dev-cmd/bottle: add --no-all-checks 2022-11-04 18:46:43 +00:00
Bo Anderson
d862b161d4
rubyext: align workaround with upstream 2022-11-04 17:25:15 +00:00
Bo Anderson
031bd9cd18
Update patchelf.rb to 1.4.0 2022-11-04 16:54:16 +00:00
moabits
b57cea84dd Fix style 2022-11-04 17:36:47 +01:00
moabits
a4bbdf8500 Update description for unsigned_accessibility caveat 2022-11-04 17:05:49 +01:00
Bo Anderson
a7c5e40c12
Merge pull request #14086 from Bo98/tapioca-platform-lock
sorbet/tapioca/require: make aware of platform-specific gem resolution
2022-11-04 11:12:41 +00:00
Bo Anderson
4abaab411f
Update RBI files 2022-11-04 05:43:50 +00:00
Bo Anderson
883ee7f4a3
sorbet/tapioca/require: make aware of platform-specific gem resolution 2022-11-04 05:42:42 +00:00
Issy Long
6f2f97b98f
test/rubocops/formula_desc: Ensure autocorrect when desc ends in .
- This was another thing that I should have done in PR 3411 in 2017,
  tested that the regex for autocorrecting `desc` stanzas ending in full
  stops actually worked. At least I'm getting to it now.
2022-11-03 23:13:19 +00:00
Issy Long
f3d43110b5
test/rubocops/formula_desc: Ensure that desc allows ending with etc.
- This was funny (and embarrassing), I was looking at my first contributions to
  Homebrew since someone asked me how long I'd been involved.
- Turns out that in 2017 I improved the formula description RuboCop rule to
  allow descriptions to end with `etc.` in
  https://github.com/Homebrew/brew/pull/3411. Apparently I didn't have time
  back then to write a test for it. So now I will remedy this 5 years later.
2022-11-03 22:25:07 +00:00
Mike McQuaid
84caae3f8f
Merge pull request #14071 from Homebrew/tests_codespaces
tests: fix under GitHub Codespaces.
2022-11-03 17:04:15 +00:00
Mike McQuaid
2961132e01
tests: fix under GitHub Codespaces. 2022-11-03 16:33:04 +00:00
Patrick Linnane
a975ad1a5c
Fix: Sparkle audit prior to el_capitan 2022-11-02 21:30:51 -07:00
Mike McQuaid
5ef3d76c8d
Merge pull request #14070 from MikeMcQuaid/search_tty
cmd/search: better handle non-TTY output.
2022-11-02 15:14:46 +00:00
Bo Anderson
31e97ca500
cask/dsl/depends_on: fix type signature 2022-11-01 20:49:16 +00:00
Sean Molenaar
f5c6667980
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-11-01 21:13:03 +01:00
Sean Molenaar
94c0d8917e
fix: allow sparkle without a macOS version 2022-11-01 20:49:43 +01:00
Mike McQuaid
8145d516e2
cmd/search: better handle non-TTY output.
When `stdout` is not a TTY then using `ohai` is a bit unpleasant as it
prevents using pipes to do cool things with the output.
2022-11-01 13:51:13 +00:00
Mike McQuaid
29e3e5906b
Merge pull request #14060 from SMillerDev/feature/cask/minos_audit
cask: audit for minimal OS version in sparkle feeds
2022-11-01 12:46:48 +00:00
Mike McQuaid
876b0dc759
Merge pull request #14065 from Bo98/cask-url-evaluate
cask/artifact/relocated: don't evaluate URL on creation
2022-10-31 13:39:03 +00:00
Bo Anderson
ad4730395a
cask/artifact/relocated: don't evaluate URL on creation 2022-10-31 13:07:25 +00:00
Issy Long
4c5feade88
Merge pull request #14062 from issyl0/rubocop-naming-method-parameter-name
rubocop: Deal with some TODOs for `Naming/MethodParameterName`
2022-10-31 12:56:04 +00:00
Sean Molenaar
73d124f342
audit: make min OS check depend on online? 2022-10-31 09:00:43 +01:00
Issy Long
c4e6a46271
rubocop: Set inherit_mode for allowed Naming/MethodParameterName
- As I was looking through the RuboCop configs for
  `Naming/MethodParameterName`, since there was a fairly long-standing
  TODO here, I found that in the default RuboCop configs the method
  names `to` and `io` are
  [allowed by default](41a8249b35/config/default.yml (L2794)).
- But we weren't inheriting those allowed names correctly from the
  default configuration. This fixes that so that we get future
  enhancements automatically for this particular cop allowlist.
2022-10-30 21:49:40 +00:00
Issy Long
c53b14e955
rubocop: Remove _ from allowed Naming/MethodParameterName
- As of RuboCop v0.67.0 (quite some time ago!), this rule allows `_` by
  default as it commonly denotes "this argument is unused". This is not
  set upstream in `AllowedNames`, the code
  [ignores underscores](4bc7d8c1bc (diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed))
  entirely.
2022-10-30 21:48:17 +00:00
Sean Molenaar
b27aeb8f94
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-10-30 19:41:51 +01:00
Bo Anderson
a99323e5a6
os/mac/xcode: do not recommend softwareupdate CLI 2022-10-30 18:16:08 +00:00
Sean Molenaar
012bd1f134
cask: audit for minimal OS version in sparkle feeds 2022-10-30 15:00:56 +01:00
Ian Gregory
cdc707fa38 Cache compiled regexes
Improves performance of `brew info --json=v2 --eval-all` by about 15–20%
2022-10-27 02:06:22 -04:00
Mike McQuaid
7eb68835cc
Merge pull request #14033 from ThatsJustCheesy/cask-install-adopt
Add `--adopt` switch
2022-10-26 12:16:49 +01:00
Mike McQuaid
30f069f60a
Merge pull request #14045 from Bo98/bump-formula-pr-version
dev-cmd/bump-formula-pr: allow --version for version formatting changes
2022-10-26 12:12:27 +01:00
Ian Gregory
a0f915169c Remove --adopt switch from reinstall and upgrade 2022-10-25 19:07:21 -04:00
Ian Gregory
9256a01afe
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-10-25 18:58:06 -04:00
Bo Anderson
c7f1a45ece
Merge pull request #14046 from Bo98/unbottled-dependents
dev-cmd/unbottled: fix --dependents erroring
2022-10-25 23:04:48 +01:00
Bo Anderson
ee64886554
Merge pull request #14041 from Bo98/no-sitedir
Remove sitedir from LOAD_PATH
2022-10-25 23:02:10 +01:00
Bo Anderson
b500aee799
dev-cmd/bump-formula-pr: allow --version for version formatting changes 2022-10-25 15:46:27 +01:00
Bo Anderson
e47988a12b
dev-cmd/unbottled: fix --dependents erroring 2022-10-25 15:44:29 +01:00
Mike McQuaid
6b1aa77ead
Gemfile: bump nokogiri.
To address a vulnerability.
2022-10-25 12:56:06 +01:00
Bo Anderson
476b5e7424
os/mac/diagnostic: allow Ruby 2.6.10 on < Ventura 2022-10-25 10:55:05 +01:00
Mike McQuaid
b9411ef8a6
Merge pull request #14035 from hmarr/git-partial-clone-sparse-checkout
Support git partial clones with sparse checkouts (take 2)
2022-10-25 09:28:29 +01:00
Mike McQuaid
4e3a21b380
cask/artifact/relocated: tweak syntax. 2022-10-25 09:00:54 +01:00
Mike McQuaid
52ae5ec6bb
Merge pull request #14038 from abhillman/patch-1
Suggest `--verbose` for `softwareupdate --all ...`
2022-10-25 08:58:56 +01:00
Bo Anderson
8cb056c657
Remove sitedir from LOAD_PATH 2022-10-24 19:42:49 +01:00
Bo Anderson
6a7eac25e1
Merge pull request #14003 from Bo98/linux-req
Update Linux requirements
2022-10-24 01:41:50 +01:00
Aryeh Hillman
51643d0ef0
Suggest --verbose for softwareupdate --all ...
Gives information about what is being updated, downloaded, etc. Else the updater is quite silent and it's hard to tell what's going on and when it will complete.

Example with the `--verbose` flag:

```
% softwareupdate --all --install --force --verbose

Software Update Tool

Finding available software
Downloading macOS Ventura 13.0
Password: 
Downloading: 65.02%
```

This feature is documented via `--help`; i.e.:

```
% softwareupdate --help
usage: softwareupdate <cmd> [<args> ...]

** Manage Updates:
	-l | --list		List all appropriate update labels (options:  --no-scan, --product-types)
	-d | --download		Download Only
	-i | --install		Install
		<label> ...	specific updates
		-a | --all		All appropriate updates
		-R | --restart		Automatically restart (or shut down) if required to complete installation.
		-r | --recommended	Only recommended updates
		     --os-only	Only OS updates
		     --safari-only	Only Safari updates
		     --stdinpass	Password to authenticate as an owner. Apple Silicon only.
		     --user	Local username to authenticate as an owner. Apple Silicon only.
	--list-full-installers		List the available macOS Installers
	--fetch-full-installer		Install the latest recommended macOS Installer
		--full-installer-version	The version of macOS to install. Ex: --full-installer-version 10.15
	--install-rosetta	Install Rosetta 2
	--background		Trigger a background scan and update operation

** Other Tools:
	--dump-state		Log the internal state of the SU daemon to /var/log/install.log
	--evaluate-products	Evaluate a list of product keys specified by the --products option 
	--history		Show the install history.  By default, only displays updates installed by softwareupdate.  

** Options:
	--no-scan		Do not scan when listing or installing updates (use available updates previously scanned)
	--product-types <type>		Limit a scan to a particular product type only - ignoring all others
		Ex:  --product-types macOS  || --product-types macOS,Safari 
	--products		A comma-separated (no spaces) list of product keys to operate on. 
	--force			Force an operation to complete.  Use with --background to trigger a background scan regardless of "Automatically check" pref 
	--agree-to-license		Agree to the software license agreement without user interaction.

	--verbose		Enable verbose output
	--help			Print this help
```
2022-10-22 16:09:52 -07:00
Harry Marr
2d68e27d7b
Prefix artifact source with only_path 2022-10-22 10:54:51 -04:00
Harry Marr
b11df3bef8
Singularise only_paths (now only_path) 2022-10-22 10:53:02 -04:00
Ian Gregory
a715dec49d Add --adopt switch
Allows `brew install` & co. to adopt existing cask artifacts that are
identical to those being installed.

Discussion: #14006
2022-10-21 23:28:51 -04:00