Mike McQuaid
f440158ce5
Merge pull request #15980 from scpeters/keg_relocate_codesign_once
...
Speed up keg installation with fewer code-signing calls
2023-09-11 13:01:22 +01:00
Eric Knibbe
c493b5e680
cmd+dev-cmd: fixes for output formatting
2023-09-11 02:29:57 -04:00
Eric Knibbe
4662678b3b
cmd+dev-cmd: adjust description line breaks
...
Use to distinguish additional notes from initial explanation and usage info
2023-09-11 02:29:21 -04:00
Eric Knibbe
2f79bdd257
global: add HOMEBREW_API_WWW
2023-09-11 02:26:37 -04:00
Eric Knibbe
43c8fec557
docs: mark console output appropriately
2023-09-11 02:26:37 -04:00
Eric Knibbe
9372edf38f
docs: re-case titles
2023-09-11 02:26:37 -04:00
Eric Knibbe
931f762598
docs+rubydoc: various grammar/wording fixes
2023-09-11 02:26:37 -04:00
Rui Chen
d31f4e4697
fix: update UA regex
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-09-09 22:47:47 -04:00
apainintheneck
d63e8cde80
cmd/audit: only flush formulary cache when needed
...
The cache here needs to be cleared when we are auditing multiple
os/arch combinations but not when we are running the audit only
for the current os/arch combination. This gives a 2x speed boost
to `brew audit --skip-style --except-version --tap=homebrew/core` locally.
In theory we could clear the cache less often by running all audits for
one os/arch combination at a time when auditing multiple os/arch combinations.
This would make the output a bit harder to follow and we don't seem to
run those checks on CI so I'm skipping that for now.
2023-09-09 18:47:29 -07:00
Steve Peters
94ef9a4b7a
codesign in keg_relocate instead of keg methods
...
Currently the codesign_patched_binary method may be called many
times for the same file when installing a keg.
This removes the calls to codesign_patched_binary from os/mac/keg
and adds a single call to the relocate_dynamic_linkage and
fix_dynamic_linkage methods in extend/os/mac/keg_relocate
to speed up keg installation.
2023-09-09 18:14:28 -07:00
Eric Knibbe
bd659ce4d0
formula: fixes for rubydoc output
...
in particular, #generate_completions_from_executable
2023-09-09 14:54:45 -04:00
Eric Knibbe
beafe82096
cmd/deps: explain runtime dependencies mode
2023-09-09 12:11:12 -04:00
Mike McQuaid
502434cf44
Merge pull request #15982 from ZhongRuoyu/audit-hashicorp-formulae
2023-09-09 07:51:12 +01:00
Bo Anderson
f17a23a89f
Merge pull request #15981 from hyuraku/remove-useless-require-from-formula.rb
...
remove useless require from `Formula`
2023-09-09 03:32:27 +01:00
Ruoyu Zhong
1306ecc694
formula_auditor: audit all relicensed HashiCorp formulae
...
Apply #15975 to all affected formulae.
2023-09-08 22:45:57 +08:00
hyuraku
08c4e6848e
remove useless require
2023-09-08 22:52:33 +09:00
Mike McQuaid
704b97d36d
Merge pull request #15971 from maschwenk/mfs-try-to-fix-upstream-issue
...
Reset requirement cache (again) after `recursive_dependencies.map(&:to_formula)` invalidates singleton cache
2023-09-08 00:58:08 -04:00
Mike McQuaid
4a208108fd
Merge pull request #15979 from alebcay/allow-sshpass
...
missing_formula: remove sshpass from denylist
2023-09-08 00:47:10 -04:00
Mike McQuaid
9b7b283805
Merge pull request #15977 from apainintheneck/improve-cask-audit
...
Improve cask audit
2023-09-08 00:46:34 -04:00
apainintheneck
1dc9274f62
Improve cask audit
...
- check for cask.url in audit steps
- check for cask.version in audit steps
- check for cask.sha256 in fetch command
- stop omitting casks based on nil url in audit command
It would be nice to be able to omit casks from the audit
if the os is not supported but there is not easy way to
do that without updating the SimulateSystem code or
refactoring how MacOSRequirement's are defined in the DSL.
2023-09-07 20:38:17 -07:00
Caleb Xu
fcb3f8c553
missing_formula: remove sshpass from denylist
2023-09-07 21:51:12 -04:00
Mike McQuaid
12c8778af9
Merge pull request #15975 from iMichka/tf
...
terraform: add audit for relicensing
4.1.10
2023-09-06 22:09:59 -04:00
Mike McQuaid
d56b0952e9
Merge pull request #15973 from Homebrew/dependabot/bundler/Library/Homebrew/minitest-5.20.0
...
build(deps): bump minitest from 5.19.0 to 5.20.0 in /Library/Homebrew
2023-09-06 22:08:55 -04:00
Issy Long
08f58ab5f7
Skip when the resource name is the same as the formula name
...
- Otherwise we get an audit failure in, for example, the `twine-pypi`
formula for the package name from its `url` that's actually `twine`.
- For this we only should track `resource "name"` blocks.
2023-09-06 23:29:09 +01:00
Issy Long
bb44d66e79
Python package names can have more characters in than just _
and -
2023-09-06 23:28:23 +01:00
Issy Long
94d4061589
Improve PyPI package name audit wording
2023-09-06 23:16:25 +01:00
Michka Popoff
a24d15d942
terraform: add audit for relicensing
...
See also
https://github.com/Homebrew/homebrew-core/pull/139538
2023-09-06 21:28:01 +02:00
Rui Chen
e5c714fa91
chore: update safari UA to the latest
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-09-06 15:10:05 -04:00
BrewTestBot
e5cbec7f15
Update RBI files for minitest.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2023-09-06 18:30:59 +00:00
BrewTestBot
c35b049b3c
brew vendor-gems: commit updates.
2023-09-06 18:23:32 +00:00
dependabot[bot]
001a9bb898
build(deps): bump minitest from 5.19.0 to 5.20.0 in /Library/Homebrew
...
Bumps [minitest](https://github.com/minitest/minitest ) from 5.19.0 to 5.20.0.
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc )
- [Commits](https://github.com/minitest/minitest/compare/v5.19.0...v5.20.0 )
---
updated-dependencies:
- dependency-name: minitest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 18:20:28 +00:00
Mike McQuaid
d5d74788b2
Merge pull request #15968 from MikeMcQuaid/cask_upgrade_sudo_test_fix
...
cask/quarantine: don't try to sudo during tests.
2023-09-06 10:17:37 -04:00
Mike McQuaid
4dc550fb2f
Merge pull request #15970 from Homebrew/sorbet-files-update
...
sorbet: Update RBI files.
2023-09-06 10:10:45 -04:00
Mike McQuaid
8d0f310fa0
Merge pull request #15972 from scpeters/audit_version_core
...
resource_auditor: relax version audit in taps
2023-09-06 10:10:26 -04:00
Mike McQuaid
58df7885e6
cask/quarantine: sudo correctly during tests.
...
Use `NeverSudoSystemCommand` and pass it through to
`Quarantine.copy_xattrs` so `brew tests` doesn't try to `sudo`.
Fixes #15958
Co-authored-by: Bo Anderson <mail@boanderson.me>
Co-authored-by: Kevin <apainintheneck@gmail.com>
2023-09-06 10:03:45 -04:00
Mike McQuaid
9ce19fc002
cask/url: full scope curl_output call.
2023-09-06 09:55:17 -04:00
Mike McQuaid
31b94e21ee
resource_auditor: also check versions based on bottle root_url.
2023-09-06 09:51:16 -04:00
Steve Peters
0ae29cc7fa
resource_auditor: relax version audit in taps
...
Disable the version regex audit for 3rd-party taps,
at least for now to allow time to comply.
2023-09-05 22:51:58 -07:00
Max schwenk
db19e99095
Add a comment to that effect
2023-09-05 22:40:23 -04:00
Mike McQuaid
43295b2637
Merge pull request #15969 from glensc/patch-1
...
Fix python: detected_python_shebang python pattern
2023-09-05 21:06:45 -04:00
BrewTestBot
bf27d9c44a
sorbet: Update RBI files.
...
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml ) workflow.
2023-09-06 00:24:17 +00:00
Elan Ruusamäe
132b763242
Fix python: detected_python_shebang python pattern
...
"python@" is not a valid dependency, must include something after the "@"
2023-09-06 01:38:58 +03:00
Mike McQuaid
0a72a4148d
Merge pull request #15967 from MikeMcQuaid/even_more_missing_curl
...
utils/github: fully scope curl usage.
2023-09-05 17:21:53 -04:00
Mike McQuaid
8c1c0c5a22
utils/github: fully scope curl usage.
...
Fixes #15965
2023-09-05 17:07:59 -04:00
Mike McQuaid
9677a9a8ef
Merge pull request #15936 from MikeMcQuaid/audit_invalid_versions
...
Audit invalid versions
2023-09-05 16:58:15 -04:00
Mike McQuaid
5ffe524df1
Merge pull request #15960 from EricFromCanada/docs-more-additions
...
Docs: more additions and improvements
2023-09-05 16:57:44 -04:00
Mike McQuaid
e4397255e2
Merge pull request #15956 from apainintheneck/handle-nil-urls-in-fetch-and-audit-cmds
...
cmd/fetch & cmd/audit: handle unsupported cask os/arch combos
2023-09-05 16:53:43 -04:00
Mike McQuaid
de4207f6d0
Audit invalid versions
...
We have a bunch of versions we've been meaning to adjust to not use
invalid GitHub Packages characters for a while. Let's audit for them
and plan for deprecating their use in future.
2023-09-05 16:43:36 -04:00
Max schwenk
f4f18acf88
Fix bad cache setting
2023-09-05 16:30:30 -04:00
Mike McQuaid
e93d56008d
Merge pull request #15964 from ZhongRuoyu/utils-curl-fix
...
Fix more `Utils::Curl` usage
2023-09-05 12:44:14 -04:00