Commit Graph
23203 Commits
Author SHA1 Message Date
XuehaiPan 1e737dbe2c cmd/shellenv.sh: apply suggestions from code review 2021-08-03 18:40:59 +08:00
XuehaiPan 6cd2192c6f cmd/shellenv.sh: make sure the current Homebrew is initialized correctly 2021-08-03 16:19:45 +08:00
XuehaiPan 7cc37fb7f8 cmd/shellenv.sh: support multi-instance installation 2021-08-02 16:57:59 +08:00
XuehaiPan 9e11fcf31e cmd/shellenv.sh: make brew shellenv idempotent 2021-07-30 21:00:38 +08:00
Sam FordandGitHub 689c1fdb6e Merge pull request #11785 from bevanjkay/livecheck-electronbuilder-allowquery
livecheck: allow query parameter in electron_builder strategy url
2021-07-28 23:08:45 -04:00
Mike McQuaid 714bfee81f extend/pathname: handle missing permissions on removal.
Fixes #11783
2021-07-28 15:40:23 +01:00
Bevan KayandSam Ford c28db0424d livecheck: allow query parameter in electron_builder strategy url
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-07-28 13:20:15 +10:00
BrewTestBot c1f68c7053 sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2021-07-28 00:12:55 +00:00
Mike McQuaidandGitHub 0228c13832 Merge pull request #11781 from MikeMcQuaid/remove_homebrew_bottle_domain
Remove HOMEBREW_BOTTLE_DOMAIN
2021-07-27 15:44:16 +01:00
yahavi d8d1922fec Error raised when no headers defined in curl download 2021-07-27 16:17:46 +03:00
Mike McQuaid 5d8b5ceb22 Remove HOMEBREW_BOTTLE_DOMAIN
It no longer works under GitHub Packages and `HOMEBREW_ARTIFACT_DOMAIN`
must be used instead.
2021-07-27 14:12:17 +01:00
Mike McQuaidandGitHub 250233acdf Merge pull request #11766 from yahavi/private-registry
Add support for private registry
2021-07-27 13:52:38 +01:00
yahavi 1116580502 Implement code review comment 2021-07-27 09:55:22 +03:00
Sean Molenaar 391b02f870 formula_installer: install service after linking 2021-07-26 21:13:53 +02:00
BrewTestBot d5f2487f70 Update RBI files for bootsnap. 2021-07-26 18:09:14 +00:00
BrewTestBot e0edf75b7f brew vendor-gems: commit updates. 2021-07-26 18:07:12 +00:00
dependabot[bot]andGitHub 62949f0a12 build(deps): bump bootsnap from 1.7.5 to 1.7.6 in /Library/Homebrew
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.5 to 1.7.6.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.7.5...v1.7.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 18:04:34 +00:00
yahavi 0335d8c0bc Fix code review comments + disable authorization on redirections 2021-07-26 19:07:23 +03:00
Mike McQuaidandGitHub 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 McQuaidandGitHub 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 CabreraandGitHub 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
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
Rylan PolsterandGitHub 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]andGitHub 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 PolsterandGitHub b18bbacced Merge pull request #11714 from Rylan12/developer
Add `brew developer` command
2021-07-21 09:53:04 -04:00
Rylan PolsterandGitHub 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 FordandGitHub 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 CabreraandGitHub 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 FordandGitHub 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 CabreraandGitHub 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 McQuaidandGitHub 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 CabreraandGitHub 252453655e Merge pull request #11748 from carlocab/search-help-text 2021-07-20 18:14:40 +08:00
Mike McQuaidandGitHub 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