Mike McQuaid
caae165eb2
Improve brew install --quiet
...
- Suppress (some more) warnings when doing `brew install --quiet`
- Clarify `man brew` output that we don't suppress all warnings
for all commands with `--quiet`
While I was doing this I noticed references to the (soon to be
deprecated) `brew switch` so:
- remove these references in `install` output
- remove a reference in the documentation
- add a comment to remind me to deprecate `brew diy`, too
Fixes #9179
2020-11-18 10:13:57 +00:00
Markus Reiter
04272f5f68
Move TapAuditor
into separate file.
2020-11-18 10:25:32 +01:00
Markus Reiter
7904cfd122
Merge pull request #9183 from reitermarkus/fix-tests
...
Unset `HOMEBREW_BAT` in tests.
2020-11-18 08:06:58 +01:00
Markus Reiter
dfeb1b4d08
Unset HOMEBREW_BAT
in tests.
2020-11-18 07:03:39 +01:00
Markus Reiter
d1cb2dd872
Merge pull request #9181 from reitermarkus/local-tests
...
Fix tests failing locally.
2020-11-18 07:01:43 +01:00
Markus Reiter
f87c9c5dc4
Fix tests failing locally.
2020-11-18 05:54:42 +01:00
Dustin Rodrigues
d26567a65d
audit: allow checksum to be added/removed when changing download scheme
2020-11-17 08:02:55 -05:00
Mike McQuaid
40cc423fa1
Merge pull request #9136 from EricFromCanada/man-page-formatting
...
Update manpage formatting
2020-11-16 14:39:47 +00:00
Mike McQuaid
76ef45fac7
Merge pull request #9134 from Rylan12/pr-pull-ci-cyntax-only
...
pr-pull: skip bottles for CI-syntax-only PRs
2020-11-16 14:20:26 +00:00
EricFromCanada
72bc057014
manpage: fixes for formatting
2020-11-16 08:02:50 -05:00
EricFromCanada
f784b7107f
manpage: fixes for grammar
2020-11-16 07:56:50 -05:00
EricFromCanada
eb16624c5f
manpage: reformat lists of subcommands & env vars
...
Modify parser.rb to add a colon between each term and the line break, which `ronn` converts into a definition list.
The <br> that follows ensures each term description is on a new line in the manpage output, and also replaces the
double trailing space for generating the hard return that follows each term in the HTML output.
Also modify man.rb to print environment variables with list markup matching the cask commands, and then drop
trailing colons from both lists of terms (cask commands, env vars) and non-list terms (analytics, bundle, services;
a <br> is added here because it would prevent the term description from being indented in the manpage output).
https://docs.brew.sh/Manpage#cask-command-options-cask
2020-11-16 07:56:50 -05:00
Mike McQuaid
aaa38b6a35
Merge pull request #9109 from SeekingMeaning/automerge/exclude-linux-only
...
pr-automerge: don't automerge PRs with linux-only label
2020-11-16 12:54:59 +00:00
Markus Reiter
1b732ec7b2
Fix RuboCop offenses.
2020-11-16 02:05:29 +01:00
Rylan Polster
20ee7e8881
add Lint/DuplicateBranch cop exceptions
2020-11-16 02:02:52 +01:00
Jonathan Chang
e547e3aba9
audit: don't error on old OS X versions
2020-11-15 17:18:32 +11:00
Rylan Polster
e14ce96f22
pr-pull: skip bottles for CI-syntax-only PRs
2020-11-14 02:52:43 -05:00
Seeker
fa61eefa15
Merge pull request #9122 from SeekingMeaning/bump-cask-pr/languages
...
bump-cask-pr: fix for casks that have multiple languages
2020-11-13 09:45:57 -08:00
Markus Reiter
78f1761802
Merge pull request #8956 from reitermarkus/sorbet
...
Add more type signatures.
2020-11-13 16:14:35 +01:00
Dustin Rodrigues
24c825efe2
Merge pull request #9111 from dtrodrigues/checksum-url
...
audit: only flag if checksum changes when full url and version stay the same
2020-11-13 07:04:03 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Seeker
e7ce9a3982
bump-cask-pr: fix for casks that have multiple languages
2020-11-12 13:49:57 -08:00
Dawid Dziurla
c0f247bbf4
Merge pull request #9119 from dawidd6/pr-upload-audit
...
pr-upload: audit only changed formulae
2020-11-12 22:01:30 +01:00
Dawid Dziurla
939f22c268
pr-upload: audit only changed formulae
2020-11-12 20:04:20 +01:00
Mike McQuaid
5afff3f3aa
Handle macOS Homebrew on ARM
...
- Output `brew doctor` and `brew install` messages noting this configuration is (currently) unsupported and encourage use of Rosetta instead
- Output Rosetta 2 usage in `brew config` on ARM (whether in Rosetta 2 or not)
- Check the architecture of (newly installed) dependencies and ensure they are using the correct architecture.
- Don't allow installing macOS Intel Homebrew in macOS ARM Homebrew default prefix (and vice versa
- Actually write out the architecture of dependencies to the tab rather than generating and throwing them away
- Set and document the expected default prefix for macOS Intel Homebrew, macOS ARM Homebrew (`/opt/homebrew`) and Homebrew on Linux
While we're here:
- Don't say Big Sur is a prerelease version but still make it clear we
don't support it (yet).
- Don't reference non-existent IRC channel
2020-11-12 17:06:47 +00:00
Dustin Rodrigues
ba0699a8d7
audit: only flag if checksum changes when version and full url stay the same
2020-11-11 23:12:58 -05:00
Seeker
d3080c8ce1
pr-automerge: don't automerge PRs for linux-only formulae
2020-11-11 01:18:16 -08:00
Rylan Polster
e05b0fc7f5
Merge pull request #9092 from Rylan12/fix-checksum-audit
...
audit: fix checksum audit
2020-11-10 15:28:26 -05:00
Jonathan Chang
49bb2561aa
Merge pull request #9087 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.2.0
...
build(deps): bump rubocop from 0.93.1 to 1.2.0 in /Library/Homebrew
2020-11-11 00:53:11 +11:00
Markus Reiter
52de3f9d8d
extract: fix tap regex
2020-11-10 23:28:31 +11:00
Jonathan Chang
500908ee6f
rubocop: fix Lint/NoReturnInBeginEndBlocks
2020-11-10 23:28:31 +11:00
Jonathan Chang
ab7b757400
rubocop: fix Style/NegatedIfElseCondition
2020-11-10 23:28:31 +11:00
Dustin Rodrigues
a8a83d1f24
dev-cmd/audit: only go back in git history until revision or version changes
2020-11-09 22:04:25 -05:00
Rylan Polster
59b1309900
Merge pull request #9039 from Rylan12/move-audit-allowlist-to-core
...
audit: migrate throttle list to Homebrew/core
2020-11-09 15:14:06 -05:00
Mike McQuaid
93362547c9
dev-cmd/audit: don't do dependency checks on Linux.
...
Alternate approach to #9091 for
https://github.com/Homebrew/homebrew-core/pull/64423
2020-11-09 16:26:44 +00:00
Rylan Polster
8a58dc09cd
audit: fix checksum audit
2020-11-09 09:44:03 -05:00
Mike McQuaid
e62090a4f4
dev-cmd/pr-upload: fix brew audit arguments.
...
I accidentally committed an earlier version for this.
2020-11-09 13:49:40 +00:00
Rylan Polster
4ae72e0bdf
tap: add constants for json files
2020-11-09 08:39:56 -05:00
Mike McQuaid
9057a63021
dev-cmd/pr-upload: run brew audit
before uploading.
...
Check that `brew bottle --merge --write` hasn't broken `brew audit`.
2020-11-09 09:59:59 +00:00
Seeker
50ce5ef3a4
bottle: fix adding bottle block to formulae with special licenses
2020-11-08 07:23:33 -08:00
Rylan Polster
b4d4f6d504
audit: require JSON arrays/objects for audit exceptions
2020-11-06 12:33:28 -05:00
Rylan Polster
f2f2de6ff0
audit: cleanup and only check certain JSON files
2020-11-06 11:23:11 -05:00
Rylan Polster
fe95b23736
audit: refactor tap_audit_exception method
2020-11-06 10:49:21 -05:00
Rylan Polster
2d76e830a8
audit: always run and don't fail after tap audits
2020-11-06 10:12:09 -05:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
EricFromCanada
dddfbf80fc
apidoc: add/update yard tags
2020-11-06 00:16:35 -05:00
Rylan Polster
2a941ec6b1
audit, tap: incorporate suggestions from code review
2020-11-05 16:14:09 -05:00
Rylan Polster
089810709c
audit: add tap_audit_exceptions attribute
2020-11-05 09:27:06 -05:00
Mike McQuaid
c4fc81b26b
audit: tweak versioned formulae logic (again).
...
References https://github.com/Homebrew/brew/pull/9027#issuecomment-722042589
2020-11-05 10:28:02 +00:00
Rylan Polster
6171b51a82
audit: migrate VERSIONED_HEAD_SPEC_ALLOWLIST to Homebrew/core
2020-11-05 01:43:01 -05:00