33853 Commits

Author SHA1 Message Date
Mike McQuaid
561e520467
api: warn rather than fail if we've got a cached version.
Rather than failing every time we fail to update (breaking most usage
while offline) instead only fail if we cannot obtain the JSON and we
don't have a valid local file we can use.

Also tweak the timeout and retry logic and values to make a bit more
sense in this context and not be so noisy when offline.
2023-02-03 10:22:50 +00:00
Mike McQuaid
820ec5411f
Merge pull request #14472 from apainintheneck/cask-loader-improvements
Cask loader improvements
2023-02-03 08:37:07 +00:00
Mike McQuaid
14eb3536ce
Merge pull request #14484 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2023-02-03 08:31:59 +00:00
Mike McQuaid
04700cc08f
Merge pull request #14486 from apainintheneck/fix-prefix-check
OS: Fix supported prefix check
2023-02-03 08:27:32 +00:00
apainintheneck
8060360333 Fix supported version check
HOMEBREW_PREFIX is a Pathname; HOMEBREW_DEFAULT_PREFIX
and HOMEBREW_MACOS_ARM_DEFAULT_PREFIX are strings.
2023-02-02 19:58:03 -08:00
apainintheneck
15c1930804 Remove redundant FromAPILoader attempt
After 32a0877 this logic has been changed so it's now
always covered by `FromAPILoader.can_load?`.
2023-02-02 18:43:53 -08:00
apainintheneck
2d93cbe13f Handle merge conflict 2023-02-02 18:40:13 -08:00
BrewTestBot
0ed2ef92cc
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2023-02-03 00:28:00 +00:00
Mike McQuaid
3af2f0ecec
Merge pull request #14470 from Homebrew/sponsors-maintainers-man-completions
Update maintainers and generation.
2023-02-02 17:50:01 +00:00
Mike McQuaid
705fe01cda
Update maintainers. 2023-02-02 17:09:52 +00:00
Mike McQuaid
41ad2eba15
update-maintainers/manpages: not all PLC are maintainers.
So list all maintainers separately.
2023-02-02 17:09:25 +00:00
Mike McQuaid
cdc6a4f11f
Merge pull request #14480 from MikeMcQuaid/no_unsupported_install_from_api
Don't allow HOMEBREW_INSTALL_FROM_API when building from source
2023-02-02 15:23:25 +00:00
Mike McQuaid
46fc4f9f1b
Don't allow HOMEBREW_INSTALL_FROM_API when building from source
When either being in a non-default prefix or being on an unsupported
macOS version we expect most things to be built from source. In that
environment, do not allow HOMEBREW_INSTALL_FROM_API to be set.

Fixes #14475
2023-02-02 14:49:34 +00:00
Mike McQuaid
cdf58fe392
Merge pull request #14439 from MikeMcQuaid/cask_source_tweaks
Tweak cask-source API handling
2023-02-02 12:50:27 +00:00
Mike McQuaid
1c1c1623e2
test/cask/cmd/list: add tap_git_head. 2023-02-02 12:19:44 +00:00
Mike McQuaid
28e1135c92
Merge pull request #14437 from hyuraku/apply-extend/os-to-migrate_gcc_dependents_if_needed
apply extend/os to `migrate_gcc_dependents_if_needed`
2023-02-02 10:45:09 +00:00
hyuraku
a57b9e7bdf repair if style 2023-02-02 19:03:05 +09:00
hyuraku
4caee38388 mv extend/os update-report 2023-02-02 19:00:13 +09:00
hyuraku
6945cd7da4 - remove mac/cmd/update-report
- repair if condition
- repair require filename
2023-02-02 18:50:09 +09:00
Carlo Cabrera
4ded574330
Merge pull request #14471 from carlocab/regex-fix 2023-02-02 08:59:46 +08:00
Dawid Dziurla
856a347bfd
Merge pull request #14474 from dawidd6/fix-lc-tc-aliases
brew.sh: add missing dev-cmd aliases
2023-02-01 20:26:04 +01:00
Dawid Dziurla
e1700178bd
brew.sh: add missing dev-cmd aliases 2023-02-01 13:51:18 +01:00
apainintheneck
e0ad960025 Load cask from API with fullname
This allows homebrew/cask/caskname
to work with the FromAPILoader.

Also, creates new constant to hold the
regex to validate main tap casks.
2023-01-31 19:39:10 -08:00
Carlo Cabrera
93fd448c6c
version: fix bad regexps in version parsers
The character class `[.-v]` is interpreted as all the characters between
`.` and `v`, which is clearly not what is intended here.

Here's an example of what this fixes. Before:

    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    6.0.0rc1

After:

    ❯ brew ruby -e 'puts Version.detect("https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.0-rc1/llvm-project-16.0.0rc1.src.tar.xz")'
    16.0.0rc1

The problem here is that `1` is a match for `/[.-v]/`.

    ❯ brew ruby -e 'puts /[.-v]/.match("1")'
    1
2023-02-01 10:48:45 +08:00
Mike McQuaid
7a5f6143d3
Merge pull request #14466 from Homebrew/dependabot/bundler/Library/Homebrew/tzinfo-2.0.6
build(deps): bump tzinfo from 2.0.5 to 2.0.6 in /Library/Homebrew
2023-01-31 12:05:49 +00:00
Mike McQuaid
34b1cc2218
Merge pull request #14458 from dduugg/rm-string-extension
Remove redundant String extension
2023-01-31 11:55:43 +00:00
Mike McQuaid
e7380b2e76
Merge pull request #14446 from Homebrew/dependabot/bundler/Library/Homebrew/webrick-1.8.1
build(deps): bump webrick from 1.7.0 to 1.8.1 in /Library/Homebrew
2023-01-31 11:46:35 +00:00
Mike McQuaid
90b154fdb5
Merge branch 'master' into cask_source_tweaks 2023-01-31 10:50:34 +00:00
apainintheneck
4917a35413 Add sanity check for cask token 2023-01-30 23:52:57 -08:00
Kevin
1e4ae4ef7d
Merge pull request #14452 from dduugg/rm-undent-mp
remove String#undent 🐵-patch
2023-01-30 21:28:51 -08:00
Issy Long
79676ad20d
Merge pull request #14450 from issyl0/casks-are-not-formulae
cli/parser: Don't treat args with `--cask` as formulae
2023-01-31 00:07:06 +00:00
Dawid Dziurla
b1b5dbb44b
Merge pull request #14460 from p-linnane/remove-lion-ref
docs: Remove Lion reference
2023-01-31 01:06:52 +01:00
Dawid Dziurla
6bc4c32951
Merge pull request #14459 from Homebrew/dawidd6-patch-1
docs: mention Linux on site description
2023-01-31 01:06:30 +01:00
BrewTestBot
a63c289d88
Update RBI files for tzinfo.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-01-30 18:12:20 +00:00
BrewTestBot
268f3fc8ed
brew vendor-gems: commit updates. 2023-01-30 18:05:21 +00:00
dependabot[bot]
d457b63581
build(deps): bump tzinfo from 2.0.5 to 2.0.6 in /Library/Homebrew
Bumps [tzinfo](https://github.com/tzinfo/tzinfo) from 2.0.5 to 2.0.6.
- [Release notes](https://github.com/tzinfo/tzinfo/releases)
- [Changelog](https://github.com/tzinfo/tzinfo/blob/master/CHANGES.md)
- [Commits](https://github.com/tzinfo/tzinfo/compare/v2.0.5...v2.0.6)

---
updated-dependencies:
- dependency-name: tzinfo
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 18:01:07 +00:00
Patrick Linnane
a544d6fe6a
docs: Remove Lion reference 2023-01-28 19:29:18 -08:00
Dawid Dziurla
c775513127
docs: mention Linux on site description 2023-01-28 22:09:17 +01:00
Rylan Polster
4b3d64d307
Merge pull request #14453 from Rylan12/languages-in-cask-api
Add `languages` to cask API
2023-01-28 14:46:21 -06:00
Douglas Eichelberger
e98e668a34 remove redundant string extension 2023-01-28 08:26:11 -08:00
Issy Long
1ce6a38730
cli/parser: Casks can be specified with --cask or --casks 2023-01-28 12:55:57 +00:00
hyuraku
653930bed8 mv files to os/*/cmd/ 2023-01-28 21:38:40 +09:00
Rylan Polster
f38ac3943f
Fix tests 2023-01-28 02:39:23 -06:00
Rylan Polster
2c78840f57
Fix typecheck issue 2023-01-28 02:16:09 -06:00
Rylan Polster
014b603b1f
Fix tests 2023-01-28 02:15:05 -06:00
Rylan Polster
32a0877cad
Remove CaskSource API 2023-01-28 02:15:00 -06:00
Rylan Polster
0f79b24203
Add languages to cask API 2023-01-28 01:05:54 -06:00
Douglas Eichelberger
220becda96 remove undent 🐵-patch 2023-01-27 22:55:38 -08:00
Douglas Eichelberger
dc78e91edd missed a few 2023-01-27 22:54:14 -08:00
Douglas Eichelberger
1dbeee826d replace undent with squiggly heredoc 2023-01-27 22:52:44 -08:00