28960 Commits

Author SHA1 Message Date
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
Rylan Polster
ac9bdd030a
Merge pull request #11745 from Homebrew/dependabot/github_actions/codecov/codecov-action-2.0.1
build(deps): bump codecov/codecov-action from 1.5.2 to 2.0.1
2021-07-19 22:12:27 -04:00
Rylan Polster
e74845833f
Merge pull request #11744 from Homebrew/dependabot/bundler/docs/ruby2_keywords-0.0.5
build(deps): bump ruby2_keywords from 0.0.4 to 0.0.5 in /docs
2021-07-19 22:09:17 -04:00
Logicer
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 Cabrera
ae788550f9
Show replacement command in odeprecated
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-20 09:39:51 +08:00
Carlo Cabrera
955ed5fc98
Merge pull request #11747 from Homebrew/update-man-completions
Update maintainers, manpage and completions.
2021-07-20 09:36:52 +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 Cabrera
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
BrewTestBot
1aa2a2052c
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 00:05:32 +00: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
dependabot[bot]
637ece373b
build(deps): bump codecov/codecov-action from 1.5.2 to 2.0.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1.5.2 to 2.0.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](29386c70ef...c585afe366)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:03:11 +00:00
dependabot[bot]
727d97a783
build(deps): bump ruby2_keywords from 0.0.4 to 0.0.5 in /docs
Bumps [ruby2_keywords](https://github.com/ruby/ruby2_keywords) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/ruby/ruby2_keywords/releases)
- [Commits](https://github.com/ruby/ruby2_keywords/compare/v0.0.4...v0.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:01:49 +00: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
3.2.3
2021-07-19 20:15:08 +08:00
Mike McQuaid
4c3a8c7e5a
Merge pull request #11740 from ylht/master
cmd/doctor: repair `xattr` not find
2021-07-19 12:53:30 +01: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
Carlo Cabrera
654d10d6d3
Fix more typos
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2021-07-19 09:43:08 +08:00
Logicer
06f415e819 Dont ask to create PAT if one already exists 2021-07-19 10:28:11 +10:00
Logicer
5b7921ff68 Add support for GitHub Oauth tokens from keychain 2021-07-18 21:47:11 +10:00
Carlo Cabrera
d696250ddb
Fix ELF architecture offset for x86_64
The current offset results in ELF binaries returning an `#arch` of
`:dunno`.

Also, skip the `check_binary_arches` audit on the generic OS.
2021-07-18 16:55:57 +08:00
Carlo Cabrera
171859d3ad
Fix typos
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2021-07-18 15:54:52 +08:00
Carlo Cabrera
3325b79726
dev-cmd/pr-automerge: deprecate --autosquash 2021-07-18 15:36:19 +08:00
Carlo Cabrera
488ccfdf70
formula_cellar_checks: check keg for mismatched arches
There have been a few instances I've noticed that we've been silently
installing binaries built for x86_64 on ARM. There's probably more that
I haven't found yet, so it seems useful to check this with an audit.
2021-07-18 11:44:37 +08:00
Carlo Cabrera
822170a766
cmd/search: add repology
I often find myself checking Repology to quickly reference how other
package managers handle certain things, so it seems useful to be able to
do so with `brew search`.

While we're here, let's fix the query URL for MacPorts.
2021-07-18 09:22:34 +08:00
Carlo Cabrera
080bd8bd4a
dev-cmd/pr-publish: pass --autosquash by default
It's too easy to forget to, and the consequences of forgetting to pass
`--autosquash` are worse (i.e. almost always permanent) than forgetting
to pass `--no-autosquash` (i.e. just do `pr-publish --no-autosquash`
when your command fails).

See the discussion at Homebrew/homebrew-core#80717.
2021-07-18 05:33:35 +08:00
Rylan Polster
9f15432742
Fix tests 2021-07-17 14:08:38 -04:00
Rylan Polster
12d272abe8
Merge pull request #11733 from Rylan12/fix-update-report-reporting
update-report: still report homebrew/core changes if they are updated
2021-07-17 13:17:01 -04:00
Rylan Polster
aaaf92b905
update-report: still report homebrew/core changes if they are updated 2021-07-17 12:48:02 -04:00
Rylan Polster
dbcd764968
Merge pull request #11730 from Rylan12/fix-latest-version-installed
formula: fix `latest_version_installed?` for `HOMEBREW_JSON_CORE`
2021-07-16 12:52:56 -04:00
Rylan Polster
672f6dc3d7
formula: fix latest_version_installed? for HOMEBREW_JSON_CORE 2021-07-16 12:14:15 -04:00
Rylan Polster
9de68d7dce
Merge pull request #11729 from Rylan12/fix-update-report
update-report: don't try to report Homebrew/core if not needed
2021-07-16 12:05:58 -04:00
Rylan Polster
a1ecb02736
update-report: don't try to report Homebrew/core if not needed 2021-07-16 11:35:51 -04:00
Eric Knibbe
fba8dd6705
Merge pull request #11713 from EricFromCanada/version-new-suffix
version: check for both cases in suffix
2021-07-16 08:48:04 -04:00
Mike McQuaid
d79cd8bd28
Merge pull request #11726 from hyuraku/installed_dependents-reject_build_formula
installed_dependents: reject build formula
2021-07-16 13:42:03 +01:00
EricFromCanada
5519a0b379
version: check for both cases in suffix 2021-07-16 08:28:15 -04:00
Mike McQuaid
ba8c4ce89f
installed_dependents: tweak comment. 2021-07-16 13:13:12 +01:00
hyuraku
2888d050f7 reject build and test dependency 2021-07-16 21:02:38 +09:00
Rylan Polster
a7c49bfa44
Merge pull request #11728 from Homebrew/sync-triage-config
Synchronize triage configuration
2021-07-16 02:31:46 -04:00
BrewTestBot
f4c6bfdf37
triage-issues.yml: update to match main configuration 2021-07-16 05:56:27 +00:00
Rylan Polster
a4e093ded0
Merge pull request #11715 from Rylan12/json-improvements
Improvements to JSON bottle handling
2021-07-16 01:50:59 -04:00
Rylan Polster
4ed44aa682
Fix style 2021-07-16 01:50:24 -04:00