26315 Commits

Author SHA1 Message Date
Carlo Cabrera
360052af57
cmd/fetch: --retry with exponential backoff.
See discussion at Homebrew/homebrew-test-bot#826.
2022-09-06 01:25:34 +08:00
Mike McQuaid
e2759fbdff
Deprecate reading all formulae through commands
We added the `--all` flag (now renamed to `--eval-all`) for various
commands for this behaviour so let's start deprecating this.

Also, introduce a `HOMEBREW_EVAL_ALL` environment variable to use the
existing, less secure, behaviour by default and avoid passing
`--eval-all` everywhere.
2022-09-05 13:57:22 +01:00
Mike McQuaid
552dc93242
Merge pull request #13802 from Rylan12/fix-bump-cask-pr
bump-cask-pr: cleanup handling of multiple hashes
2022-09-05 12:14:18 +01:00
Carlo Cabrera
6def5fc53b
Merge pull request #13799 from apainintheneck/ignore-missing-unversioned-formula-after-rename
Ignore renamed formulae when checking for unversioned formulae
2022-09-05 19:14:02 +08:00
Mike McQuaid
997fd648ce
Merge pull request #13788 from Homebrew/sponsors
Automate sponsors updates
2022-09-05 12:07:31 +01:00
Carlo Cabrera
a2c23f022b
Merge pull request #13796 from carlocab/linux-gcc-linkage 2022-09-05 16:04:53 +08:00
Rylan Polster
092095a249
bump-cask-pr: cleanup handling of multiple hashes 2022-09-03 19:28:23 -04:00
Bo Anderson
04f6f53b58
dev-cmd/pr-pull: avoid expensive search API calls 2022-09-03 21:19:37 +01:00
apainintheneck
bb1c783817 Ignore renamed formulae when checking for unversioned formulae
There is an audit for versioned formulae that makes sure
an unversioned formulae of the same name exists already.
This ignores that check when we exlicitly removed the
unversioned formula by checking if it was renamed.

Also, there is no need to check for formula.tap because
formula.core_formula? guarantees the presence of formula.tap.
2022-09-02 23:02:07 -07:00
Max Eisner
20e432c0d5
fix style 2022-09-02 22:26:58 +02:00
Max Eisner
02860aa0e8
use #blank? instead of #nil?
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2022-09-02 22:23:26 +02:00
Carlo Cabrera
b2cc1720f8
Add comment explaining gcc exception for undeclared_deps. 2022-09-02 22:04:38 +08:00
Max Eisner
b41dd8c729
generate_completions: fix shell_parameter_format: :none 2022-09-02 15:40:24 +02:00
Mike McQuaid
af6165aab7
Automate sponsors updates
- Add sponsors updating to the existing man/completion/maintainer update workflow
- Hide/deprecated --fail-if-not-changed arguments and make them default behaviour
- Rename man-completions workflow to sponsors-maintainers-man-completions for consistency
- Make output and exit codes more consistent between these updating commands
- Fix maintainers updates not always being committed correctly
2022-09-02 08:24:33 +01:00
Carlo Cabrera
ef7c9cf17c
linux/linkage_checker: remove gcc from undeclared_deps
This is causing warnings all over Homebrew/homebrew-core.

For example, there are dozens of warnings about this in the following CI
run:

    https://github.com/Homebrew/homebrew-core/runs/8116257943?check_suite_focus=true
2022-09-02 14:28:07 +08:00
Rylan Polster
bfbb7a79bd
Improve brew update with HOMEBREW_INSTALL_FROM_API 2022-09-02 02:10:12 -04:00
Bo Anderson
cc97ae2152
resource: style tweak 2022-09-01 19:30:38 +01:00
Bo Anderson
6c4245e298
software_spec: fix bottle resource version type 2022-09-01 18:47:38 +01:00
Bo Anderson
911aa6ab18
resource: determine version before freezing 2022-09-01 18:30:58 +01:00
Mike McQuaid
f788277b69
Merge pull request #13753 from Bo98/iced-formulae
Freeze formula definition once first instance is created
2022-09-01 14:15:25 +01:00
Mike McQuaid
998716a0d9
Merge pull request #13786 from EricFromCanada/stable-head-symbols
formula_auditor: use symbols for spec iteration
2022-09-01 11:05:36 +01:00
Mike McQuaid
48b579a23f
Merge pull request #13784 from EricFromCanada/deps-drop-requirement
cmd/deps: drop `--installed` requirement for `--formula`/`--cask`
2022-09-01 11:04:57 +01:00
Mike McQuaid
10edb8c22c
Merge pull request #13785 from EricFromCanada/utils-edit-bbedit
utils: prefer BBEdit over TextWrangler
2022-09-01 11:04:03 +01:00
Daniel Nachun
451bded34d
Merge pull request #13770 from danielnachun/add_symlink_gcc_libs
Automatically add symlinks from gcc cellar to HOMEBREW_PREFIX/lib
2022-08-31 19:28:23 -07:00
danielnachun
3c014a0fc0
Library/Homebrew/extend/os/linux/install.rb: add symlink_gcc_libs 2022-08-31 17:39:55 -07:00
EricFromCanada
675e80e9ae
formula_auditor: use symbols for spec iteration 2022-08-31 16:54:56 -04:00
Bo Anderson
abfbb46678
Freeze formula definition once first instance is created 2022-08-31 20:40:42 +01:00
Bo Anderson
15280ba107
test: avoid improper, late usage of formula DSL 2022-08-31 20:40:39 +01:00
EricFromCanada
76199ddd72
utils: prefer BBEdit over TextWrangler 2022-08-31 15:26:58 -04:00
Bo Anderson
88a8def34c
formula: add signature for bottle DSL 2022-08-31 19:47:47 +01:00
Bo Anderson
1c5ba1f685
formula: require instances to use a subclass 2022-08-31 19:21:05 +01:00
EricFromCanada
197f915323
cmd/deps: drop --installed requirement for --formula/--cask
Fixes #13592.
2022-08-31 14:20:11 -04:00
Bo Anderson
93647e5c98
requirement: require instances to use a subclass 2022-08-31 19:17:55 +01:00
Bo Anderson
ea44c21822
cask_dependent: fix incorrect requirement logic 2022-08-31 19:17:52 +01:00
Bo Anderson
f12442cce6
requirement: improve name detection of anonymous subclasses 2022-08-31 18:40:30 +01:00
Mike McQuaid
fd432aa1db
cmd/deps: improve switch names.
The previous `-n` and `--1` made both the code and the help harder to
read and follow.

Co-authored-by: Eric Knibbe <enk3@outlook.com>
Co-Authored-By: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2022-08-31 17:21:44 +01:00
Mike McQuaid
d724616edf
Merge pull request #13783 from Bo98/ruby-path
util/ruby.sh: fix HOMEBREW_USE_RUBY_FROM_PATH to actually use user's PATH
2022-08-31 17:15:30 +01:00
Bo Anderson
10304ef569
util/ruby.sh: fix HOMEBREW_USE_RUBY_FROM_PATH to use user's PATH 2022-08-31 15:52:10 +01:00
Carlo Cabrera
55f27b932a
Merge pull request #13715 from carlocab/python-site-packages
cleanup: handle Python `site-packages` directories
2022-08-31 21:08:14 +08:00
Mike McQuaid
96fde442d1
Merge pull request #13758 from sjackman/sj/gcc_dep_if_needed
gcc_dep_if_needed: Install GCC if Glibc is too old
2022-08-31 13:53:19 +01:00
Shaun Jackman
d6368806e8
os/linux/dependency_collector: install gcc if glibc is too old.
gcc is required for libgcc_s.so.1 if glibc or gcc are too old.
2022-08-31 13:16:38 +01:00
Carlo Cabrera
c6428d9def
Add tests for cleanup_python_site_packages. 2022-08-31 16:26:54 +08:00
Carlo Cabrera
155f4d7394
Fix collection of unused_pyc_files. 2022-08-31 16:04:21 +08:00
BrewTestBot
91123597ed
brew vendor-gems: commit updates. 2022-08-30 18:08:12 +00:00
dependabot[bot]
e3956fe2fb
build(deps): bump parallel_tests in /Library/Homebrew
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 3.11.1 to 3.12.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/grosser/parallel_tests/compare/v3.11.1...v3.12.0)

---
updated-dependencies:
- dependency-name: parallel_tests
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 18:04:56 +00:00
Mike McQuaid
d5b9d0e3f6
Merge pull request #13778 from Homebrew/improve_glibc_gcc_dep_handling
extend/os/linux: improve glibc, gcc dependency handling.
2022-08-30 14:28:54 +01:00
Mike McQuaid
2d79b4b8a4
Merge pull request #13776 from Homebrew/rubocop_fixes
shims/gems/rubocop: handle when `brew` isn't in PATH.
2022-08-30 14:19:10 +01:00
Mike McQuaid
1f709d360d
extend/os/linux: improve glibc, gcc dependency handling.
- Add more early return checks
- Move to a recursive approach for more readability and avoiding a
  counter that we need to bump
- Perform more caching
- Keep class variable usage isolated into specific methods
2022-08-30 12:54:34 +00:00
Mike McQuaid
5b8bc14afd
shims/gems/rubocop: handle when brew isn't in PATH.
Instead, figure out where `$HOMEBREW_PREFIX/bin` should be and use that.
2022-08-30 12:53:42 +00:00
Mike McQuaid
a5f7fc814e
cmd/deps: return failing exit code on circular dependencies.
This makes more sense but will also be useful in `brew test-bot`.
2022-08-30 12:21:02 +00:00