23183 Commits
Author SHA1 Message Date
Mike McQuaid 4931c6cafc Merge pull request #11772 from SMillerDev/fix/formula/opt_for_service_helpers
Formula: use opt_prefix for service helpers
2021-07-26 13:19:07 +01:00
Mike McQuaid 2f369efba7 Merge pull request #11767 from hyuraku/search_desc_by_formula-or-cask
repair to apply `--formula` and `--cask` options to `brew search  --desc`
2021-07-26 13:13:06 +01:00
Sean Molenaar 869b0ea519 Formula: use opt_prefix for service helpers 2021-07-26 11:11:34 +02:00
Carlo Cabrera ca4f7aeb00 Merge pull request #11760 from carlocab/show-archs
formula_cellar_checks: show mismatched arch in `check_binary_arches`
2021-07-26 16:34:25 +08:00
hyuraku 3ccb1f6328 search by desc with formula-cask option 2021-07-25 20:10:35 +09:00
Rylan Polster 5ec335188f Merge pull request #11754 from Rylan12/update-preinstall-check
Use Homebrew/brew when checking `HOMEBREW_AUTO_UPDATE_SECS`
2021-07-24 13:21:41 -04:00
BrewTestBot 485c9777d3 Update RBI files for rubocop. 2021-07-23 18:07:57 +00:00
BrewTestBot b559e202c8 brew vendor-gems: commit updates. 2021-07-23 18:05:44 +00:00
dependabot[bot] d51bf3231e build(deps): bump rubocop from 1.18.3 to 1.18.4 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.18.3 to 1.18.4.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.18.3...v1.18.4)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-23 18:03:03 +00:00
Michka Popoff bc8613cbe8 brews.sh: change HOMEBREW_MINIMUM_CURL_VERSION only for debian 7
I am not sure why we also checked for HOMEBREW_FORCE_HOMEBREW_ON_LINUX.
If the minimum curl version needs to be changed, we should introduce
specific env variables for each case that needs it, instead of
asking for HOMEBREW_FORCE_HOMEBREW_ON_LINUX to be set too (which is not the case
in the linuxbrew-core repo for example)
2021-07-23 14:51:35 +02:00
Carlo Cabrera 8e6731b7c7 formula_cellar_checks: show mismatched arch in check_binary_arches
This will make the error more informative by showing the architecture a
binary was built for along with the error message.

Before:

    foo:
      * Binaries built for an incompatible architecture were installed into foo's prefix.
        The offending files are:
          /usr/local/Cellar/foo/1.0/lib/libbar.dylib
          /usr/local/Cellar/foo/1.0/lib/libfoo.dylib
          /usr/local/Cellar/foo/1.0/lib/libincompatible.dylib
        Unexpected universal binaries were found.
        The offending files are:
          /usr/local/Cellar/foo/1.0/lib/liball.dylib
          /usr/local/Cellar/foo/1.0/lib/libuniversal.dylib

After:

    foo:
      * Binaries built for a non-native architecture were installed into foo's prefix.
        The offending files are:
          /usr/local/Cellar/foo/1.0/lib/libbar.dylib        (i386)
          /usr/local/Cellar/foo/1.0/lib/libfoo.dylib        (arm64)
          /usr/local/Cellar/foo/1.0/lib/libincompatible.dylib       (universal)
        Unexpected universal binaries were found.
        The offending files are:
          /usr/local/Cellar/foo/1.0/lib/liball.dylib
          /usr/local/Cellar/foo/1.0/lib/libuniversal.dylib
2021-07-23 11:40:01 +08:00
Rylan Polster b18bbacced Merge pull request #11714 from Rylan12/developer
Add `brew developer` command
2021-07-21 09:53:04 -04:00
Rylan Polster 35c9df43a2 Merge pull request #11753 from Rylan12/no-bottle-message
BottleAPI: include formula name in error message
2021-07-21 09:50:57 -04:00
Sam Ford 0e6dc7badb Merge pull request #11749 from samford/allow-configuration-of-std-cargo-args
Formula: Allow configuration of std_cargo_args
2021-07-21 09:44:20 -04:00
Carlo Cabrera 78ad5a870c formula_installer: add tap_audit_exception stub
`FormulaInstaller` calls `audit_installed` at install time, which
invokes methods in `FormulaCellarChecks`. One of these methods makes a
call to `tap_audit_exception` (cf. #11750), but this method isn't
visible in `FormulaInstaller`.

Instead of trying to replicate the logic of `tap_audit_exception` in
`FormulaAuditor` (or trying to initialise an instance of one to make the
call to `FormulaAuditor`'s implementation of it), let's just implement a
stub that assumes an exception always exists.

I'll need to think a bit about whether this is the right fix for this,
but currently the missing method error is blocking PRs in Homebrew/core,
so let's go with this for now. [1]

[1] e.g. Homebrew/homebrew-core#81388, Homebrew/homebrew-core#81582
2021-07-21 15:46:04 +08:00
Rylan Polster 3dddbe39fa Use Homebrew/brew when checking HOMEBREW_AUTO_UPDATE_SECS 2021-07-21 03:10:08 -04:00
Carlo Cabrera eb27ba4832 Merge pull request #11750 from carlocab/audit-archs-fixed
formula_cellar_checks: handle universal binaries in `check_binary_arches`
2021-07-21 12:45:03 +08:00
Carlo Cabrera a29098c813 Use #partition to simplify extracting compatible_universal_binaries 2021-07-21 12:05:54 +08:00
Sam Ford e125e2b3ef Merge pull request #11746 from samford/livecheck/sourceforge-do-not-modify-rss-urls
Sourceforge: Do not modify RSS URLs
2021-07-20 18:17:39 -04:00
Rylan Polster 58f1cc2e6d BottleAPI: include formula name in error message 2021-07-20 18:12:04 -04:00
Sam Ford 2fe77f5271 Formula: Allow configuration of std_cargo_args 2021-07-20 18:04:35 -04:00
Rylan Polster 81d89803db Remove extra HOMEBREW_NO_DEV_CMD_MESSAGE line 2021-07-20 11:50:53 -04:00
Rylan Polster 27ba803bb5 Remove need for HOMEBREW_NO_DEV_CMD_MESSAGE 2021-07-20 11:47:31 -04:00
Carlo Cabrera 1d5bc01f4e Merge pull request #11734 from carlocab/deprecate-autosquash
dev-cmd/pr-publish: pass `--autosquash` by default
2021-07-20 19:47:01 +08:00
Carlo Cabrera 699051b3c3 Use #present? instead of #any? 2021-07-20 18:53:53 +08:00
Carlo Cabrera 663aee0a67 Fix style
The linter complained about useless assignment to
`universal_binaries_expected`. It wasn't useless, but ok.
2021-07-20 18:48:40 +08:00
Carlo Cabrera 239fd06728 Enforce universal binary check only for Homebrew/core
Also, prefer `if` to `unless`.
2021-07-20 18:40:19 +08:00
Mike McQuaid acc5d68654 Merge pull request #11731 from gromgit/extract/fix_load
extract: ignore syntax errors during load
2021-07-20 11:15:10 +01:00
Carlo Cabrera 252453655e Merge pull request #11748 from carlocab/search-help-text 2021-07-20 18:14:40 +08:00
Mike McQuaid 41d62e9084 Merge pull request #11739 from Logicer16/dont-ask-for-a-PAT-if-one-already-exists
GitHub/API: Don't ask for a PAT if one already exists
2021-07-20 10:48:06 +01:00
Carlo Cabrera 55cc1eb8b0 Check tap_audit_exception only if tap is present 2021-07-20 13:08:15 +08:00
Carlo Cabrera 1678a3785e Fix logic in check_binary_arches 2021-07-20 12:35:09 +08:00
Carlo Cabrera 7b74730f9d formula_cellar_checks: fix universal binary handling
The `check_binary_arches` audit will fail any formula that produces
universal binaries. We have a handful of formulae in Homebrew/core that
do this (see any formula that does `ENV.permit_arch_flags`, for
example). Moreover, some third party taps may have their own formulae
that build universal binaries.

I've updated the check so that it ignores a formula that produces
universal binaries whenever the formula is in the appropriate allowlist.
We'll need to create one in Homebrew/core for the handful of formulae
that do (expectedly) build universal binaries.

If we don't want to maintain an allowlist, we can easily modify this to
pass over any formulae that builds compatible universal binaries.

I've also fixed the spacing of the error this audit produces whenever
there is more than one file that fails the audit.
2021-07-20 12:15:59 +08:00
LogicerandRylan Polster 7beb1f227c Update Library/Homebrew/utils/github/api.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 12:06:04 +10:00
Adrian Ho a14d8924de extract: ignore syntax errors during load 2021-07-20 09:57:04 +08:00
Carlo CabreraandRylan Polster ae788550f9 Show replacement command in odeprecated
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 09:39:51 +08:00
Carlo Cabrera 349a485886 Merge pull request #11742 from carlocab/pour-default-prefix
formula: add `:default_prefix` as a standard `pour_bottle?` requirement
2021-07-20 09:34:58 +08:00
Carlo Cabrera 219fffb700 cmd/search: tweak help text
See https://github.com/Homebrew/brew/pull/11736#discussion_r672233442.
2021-07-20 09:32:37 +08:00
Carlo CabreraandRylan Polster 9370c7cca7 Fix logic error in pr-automerge
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 09:28:38 +08:00
Carlo Cabrera 4d77e01273 Remove on_macos block 2021-07-20 09:07:09 +08:00
Carlo Cabrera 608e501756 Merge pull request #11736 from carlocab/search-repology
cmd/search: add repology
2021-07-20 08:03:13 +08:00
Logicer ed4f840a67 Fix style 2021-07-20 09:22:34 +10:00
Logicer 0c6f5ab233 Put API.credentials bit into separate variable 2021-07-20 09:18:16 +10:00
Sam Ford 7b864e0aaa Sourceforge: Do not modify RSS URLs
This allows a `livecheck` block to check the RSS feed for a given
path in a SourceForge project. For example:
https://sourceforge.net/projects/example/rss?path=/directory
2021-07-19 15:15:27 -04:00
Rylan Polster 564a207bad Add HOMEBREW_NO_DEV_CMD_MESSAGE 2021-07-19 10:06:38 -04:00
Carlo Cabrera 1ceaa2ebd3 formula: add :default_prefix as a standard pour_bottle? requirement
See discussion at Homebrew/homebrew-core#81408.
2021-07-19 20:26:02 +08:00
Carlo Cabrera 16b01d6e01 Merge pull request #11737 from carlocab/audit-arches
formula_cellar_checks: check keg for mismatched arches
2021-07-19 20:15:08 +08:00
Logicer 71b61d28d1 Fix Style 2021-07-19 12:09:23 +10:00
ylht 75a38b7187 refactor the format 2021-07-19 10:02:19 +08:00
ylht e5986dba6c cmd/doctor: repair xattr not find 2021-07-19 09:55:30 +08:00