28864 Commits

Author SHA1 Message Date
Mike McQuaid
e5dfed1b3b
docs/How-To-Open-a-Homebrew-Pull-Request: don't install with debug/verbose. 2021-07-26 13:14:28 +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
yahavi
cc12738f8e Allow anonymous access in private registries 2021-07-26 09:58:34 +03:00
BrewTestBot
0d8caf722b
brew vendor-gems: commit updates. 2021-07-26 02:46:43 +00:00
dependabot[bot]
241bcb262a
build(deps-dev): bump sorbet in /Library/Homebrew
Bumps [sorbet](https://github.com/sorbet/sorbet) from 0.5.6274 to 0.5.6519.
- [Release notes](https://github.com/sorbet/sorbet/releases)
- [Commits](https://github.com/sorbet/sorbet/commits)

---
updated-dependencies:
- dependency-name: sorbet
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 02:44:20 +00:00
kraktus
111980932b Docs: remove bottle :unneeded mention
As per Homebrew/homebrew-core#75943
2021-07-25 20:25:18 +02:00
kraktus
c3bbd110d6 Docs: better flags for build/test commands
When creating a new formula, `--build-from-source` should be added. Adding the `--online` flag make the test more thorough.
2021-07-25 20:14:45 +02:00
Carlo Cabrera
542694728c
codesign binaries on ARM 2021-07-25 23:21:26 +08:00
hyuraku
3ccb1f6328 search by desc with formula-cask option 2021-07-25 20:10:35 +09:00
yahavi
b8954030e3 Add support for private registry 2021-07-25 10:50:12 +03:00
Carlo Cabrera
5128b92d3e
Use slightly more suggestive method name for extracting slices
`extract_slice_from` is still a little ambiguous, so let's try to give
it a more suggestive name.
2021-07-25 11:29:33 +08: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
Carlo Cabrera
a8527f4c16
Ensure writability, handle errors 2021-07-24 19:39:47 +08:00
Nanda H Krishna
4cf2820943
Merge pull request #11763 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.18.4
build(deps): bump rubocop from 1.18.3 to 1.18.4 in /Library/Homebrew
2021-07-23 23:59:22 +05:30
Nanda H Krishna
62c44e24ab
Merge pull request #11762 from Homebrew/dependabot/github_actions/codecov/codecov-action-2.0.2
build(deps): bump codecov/codecov-action from 2.0.1 to 2.0.2
2021-07-23 23:51:45 +05:30
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
dependabot[bot]
53b399db1f
build(deps): bump codecov/codecov-action from 2.0.1 to 2.0.2
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](c585afe366...51d810878b)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-23 18:02:35 +00:00
Michka Popoff
2689957a08
Merge pull request #11761 from iMichka/debian
brews.sh: change HOMEBREW_MINIMUM_CURL_VERSION only for debian 7
2021-07-23 15:27:45 +02: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
Bevan Kay
778d5df6d4
add qlplugins check to guess_cask_version 2021-07-22 19:36:50 +10:00
Carlo Cabrera
5e0b786da2
formula: add deuniversalize_machos method
This method takes an optional array of `Pathnames`s or `Strings`s and
extracts the native slice from the specified universal binary. If no
parameter is supplied, this is done on all compatible universal binaries
in a formula's keg.

`deuniversalize_machos` is a no-op on Linux.

I still need to look into a) error handling, and b) whether using this
method requires codesigning on ARM.

I've also added signatures to the methods in `extend/os/linux/formula`.
2021-07-22 01:24:56 +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
84f55cd8f1
Merge pull request #11755 from carlocab/binary-arch-missing
formula_installer: add `tap_audit_exception` stub
2021-07-21 16:18:37 +08: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
Bevan Kay
5040ec8142
fix style issues 2021-07-21 16:25:11 +10:00
Bevan Kay
212992a476
fix typecheck, add reference in bump-unversioned-casks 2021-07-21 16:09:09 +10: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
Rylan Polster
e2d29b70f7
Merge pull request #11752 from Homebrew/update-man-completions
Update maintainers, manpage and completions.
2021-07-20 18:10:33 -04:00
Sam Ford
2fe77f5271
Formula: Allow configuration of std_cargo_args 2021-07-20 18:04:35 -04:00
BrewTestBot
9ed18a15e1
Update maintainers, manpage and completions.
Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml) workflow.
2021-07-20 21:53:03 +00: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
d8c37c3fff
Merge pull request #11751 from Homebrew/update-man-completions
Update maintainers, manpage and completions.
2021-07-20 11:37:49 +01:00
BrewTestBot
a456f55e20
Update maintainers, manpage and completions.
Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml) workflow.
2021-07-20 10:16:39 +00: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