26835 Commits

Author SHA1 Message Date
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
Rylan Polster
cc78b155c6
Add stable checksum to the JSON API 2022-10-21 01:22:36 -04:00
Harry Marr
6219cd0a92
Use different cache tag for sparse checkouts 2022-10-20 15:47:26 -04:00
Harry Marr
49e2cf9f92
Extract supports_partial_clone_sparse_checkout? 2022-10-20 15:45:33 -04:00
Harry Marr
99504c4474
Use blank? rather than nil?
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-10-20 15:45:33 -04:00
Harry Marr
1472259e1d
Appease rubocop 2022-10-20 15:45:33 -04:00
Harry Marr
7df90eb7e1
Support git partial clones with sparse checkouts 2022-10-20 15:45:32 -04:00
Bo Anderson
c092708448
Ventura RC version bumps 2022-10-20 20:04:42 +01:00
Bo Anderson
4f4747cf98
Merge pull request #14014 from Bo98/ruby3-part2
Additional fixes for Ruby 3 compatibility
2022-10-20 16:17:01 +01:00
Mike McQuaid
d863d333c7
Merge pull request #14015 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2022-10-20 15:51:29 +01:00
Mike McQuaid
bfd2263425
integration_test: fix Bundler deprecation.
Otherwise in some configurations some tests will fail.
2022-10-20 13:33:27 +01:00
Mike McQuaid
3bb2cd4ece
Merge pull request #13971 from MikeMcQuaid/stronger-language
Strengthen "don't create issues" language
2022-10-20 12:04:28 +01:00
Mike McQuaid
53b1c0f48e
Strengthen "don't create issues" language
We're still getting a non-trivial number of issues from configurations
we don't support and don't plan to.

Let people know that we know their experience will not be good and what
to expect if they file issues.

Co-authored-by: Eric Knibbe <enk3@outlook.com>
2022-10-20 11:39:20 +01:00
Mike McQuaid
416af82670
macOS Ventura (and related) test fixes
- fix `check_for_config_scripts` test, no idea why this wasn't working
- don't autoretry tests if `focus` or `byebug` are enabled
- add a ARM64 Ventura bottle symlink
2022-10-20 11:28:27 +01:00
Bo Anderson
200cdc69df
utils/gems: set SDKROOT for macOS system Ruby 2022-10-19 18:39:52 +01:00
Mike McQuaid
c6b7836368
Merge pull request #14020 from samford/allow-livecheck-block-in-on_system-blocks
Allow livecheck method in on_system blocks
2022-10-19 11:20:09 +01:00
Francois-Xavier Coudert
e16afb305e Mark macOS Ventura as supported 2022-10-19 11:21:52 +02:00
Sam Ford
40199404cf
Allow livecheck method in on_system blocks
It's sometimes necessary to have a `livecheck` block in an `on_macos`
or `on_linux` block. For example, a formula may be disabled on macOS
but not on Linux. In that scenario, we only want a `livecheck` block
to apply to Linux, so livecheck will automatically skip the formula
as disabled on macOS.

While this setup works on a technical level, `brew style` will give
an `on_linux cannot include livecheck` offense. This commit addresses
the issue by adding `livecheck` to `on_system_allowed_methods` in the
`ComponentsOrder` Rubocop.

This also updates `on_system_allowed_methods` to use the order in
`FORMULA_COMPONENT_PRECEDENCE_LIST`, which may make it a bit easier
for formula maintainers to read at a glance.
2022-10-18 16:02:29 -04:00
Bo Anderson
eac32f0b20
Additional fixes for Ruby 3 compatibility 2022-10-18 01:54:59 +01:00
BrewTestBot
1db08dc8b6
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-10-18 00:37:06 +00:00
Sam Ford
942f419a48
ResourceAuditor: Fix #audit_head_branch error
The existing logic in `#audit_head_branch` for identifying the `HEAD`
branch in a Git repository will give an ```undefined method `[]' for
nil:NilClass``` error when a repository doesn't provide this
reference. Expected output is as follows:

```
ref: refs/heads/master  HEAD
1a8f9ac700873d1a08de31a17a2fd654245d5085  HEAD
```

However, I encountered this error for a repository with the following
output (i.e., where no symref is provided for HEAD):

```
f86be659718c0cd0a67f88b42f07044c23d0d028  HEAD
```

This commit resolves the error by modifying the related logic to
account for a `nil` value.
2022-10-17 13:28:20 -04:00
Bo Anderson
1a8f9ac700
Merge pull request #14008 from Bo98/bundler-arm-linux
Restore ARM Linux support when installing gems
2022-10-17 14:38:39 +01:00
Bo Anderson
c150657005
Restore ARM Linux support when installing gems 2022-10-17 13:59:40 +01:00
Bo Anderson
44f93069bb
os/mac/pkgconfig/13: update for beta 9 SDK 2022-10-17 01:14:01 +01:00
nthumann
f54de5a848
Fix curl_output for curl download strategy 2022-10-16 22:30:16 +02:00
Bo Anderson
1882ae4f6e
Update Linux requirements
* Glibc 2.26+ (we use 2.35) require Linux kernel 3.2 or later.
* Remove GCC requirement given it doesn't matter for bottles (we install GCC ourselves if too old) and is probably wrong for the build-from-source case.
* Remove libxcrypt-compat requirement given we don't use libcrypt.so.1 anymore.
2022-10-16 17:08:17 +01:00
BrewTestBot
ea95518d59
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-10-15 00:35:47 +00:00
Mike McQuaid
34979a33d3
Merge pull request #13997 from hyuraku/add-error-log-for-download-formula.json
add error log of download `formula.json`
2022-10-14 17:35:45 +01:00
Mike McQuaid
e554f51454
cmd/update: tweak error message.
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-10-14 17:10:50 +01:00
hyuraku
4bc5f48654 compare bytesize instead of shasum256 2022-10-15 00:22:10 +09:00
EricFromCanada
504bdd2816
bump-cask-pr: handle additional use cases 2022-10-14 11:19:49 -04:00
BrewTestBot
b3605020e3
Update RBI files for elftools.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-10-14 09:05:18 +00:00
BrewTestBot
f5663e6e0c
brew vendor-gems: commit updates. 2022-10-14 09:00:12 +00:00
dependabot[bot]
dfd9653331
build(deps): bump elftools from 1.1.3 to 1.2.0 in /Library/Homebrew
Bumps [elftools](https://github.com/david942j/rbelftools) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/david942j/rbelftools/releases)
- [Commits](https://github.com/david942j/rbelftools/compare/v1.1.3...v1.2.0)

---
updated-dependencies:
- dependency-name: elftools
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 08:56:23 +00:00
Bo Anderson
0be900af69
Merge pull request #13984 from Bo98/bundler2
Migrate to Bundler 2
2022-10-14 02:51:47 +01:00