4561 Commits

Author SHA1 Message Date
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
997fd648ce
Merge pull request #13788 from Homebrew/sponsors
Automate sponsors updates
2022-09-05 12:07:31 +01:00
Bo Anderson
04f6f53b58
dev-cmd/pr-pull: avoid expensive search API calls 2022-09-03 21:19:37 +01: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
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
Bo Anderson
93647e5c98
requirement: require instances to use a subclass 2022-08-31 19:17:55 +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
Carlo Cabrera
c6428d9def
Add tests for cleanup_python_site_packages. 2022-08-31 16:26:54 +08:00
Sean Molenaar
86f011cefb
Cask: automatically add cask audits 2022-08-29 11:28:20 +02:00
Rylan Polster
98999cc510
Merge pull request #13754 from Rylan12/cask-artifacts-hash
Include dsl key in cask artifact hash
2022-08-26 23:03:25 -04:00
Bo Anderson
768eb1d51a
test/formula_spec: stub Tap#versioned_formulae_names 2022-08-25 16:13:24 +01:00
Rylan Polster
5c7e7eebe4
Condense artifact entries
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-08-25 10:24:30 -04:00
Mike McQuaid
61db6207d8
Merge pull request #13577 from iMichka/glibc-install
install glibc/gcc automatically if too old.
2022-08-25 11:54:19 +01:00
Michka Popoff
d271614872
install glibc/gcc automatically if too old.
Right now this is done through the gcc@5 formula.
See 9692318ca6/Formula/gcc%405.rb (L33)

This is fragile because when we will migrate to gcc@11
we have to think about migrating the installation from one gcc formula to another..
Also, not having the right glibc version results in a non-functional brew
installation on an older Linux: the glibc installation needs
to be done by brew, and not by a workaround in a specific formula

Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Bo Anderson <mail@boanderson.me>
Co-Authored-By: Shaun Jackman <sjackman@gmail.com>
2022-08-25 11:04:37 +01:00
Rylan Polster
90d22bc7b1
Include dsl key in cask artifact hash 2022-08-25 03:04:48 -04:00
Rylan Polster
1c54e915b6
Update cask rubocops to use on_arch blocks and sha256 arm:, intel: 2022-08-25 00:49:28 -04:00
Rylan Polster
3f00893201
Include on_{system} blocks as stanzas in rubocop 2022-08-23 14:09:29 -04:00
Mike McQuaid
c294dcc616
glibc related cleanup
Extracted from https://github.com/Homebrew/brew/pull/13577
2022-08-23 12:42:02 +01:00
Rylan Polster
fcb30c1ead
Merge pull request #13702 from Rylan12/sha256-arch
Add `arm:` and `intel:` arguments to cask `sha256` stanza
2022-08-17 10:34:04 -04:00
Sean Molenaar
cc61a759ed
Merge pull request #13627 from SMillerDev/feature/cask/signing_check
cask: add audit for incorrect signing
2022-08-16 10:51:59 +02:00
Rylan Polster
686e02b7ce
Add arm: and intel: arguments to cask sha256 stanza 2022-08-16 00:48:24 -04:00
Carlo Cabrera
5047d4249e
Merge pull request #13690 from carlocab/python-path-shebang
language/python: support `python3` from PATH in `#detected_python_shebang`
2022-08-16 02:02:56 +08:00
fn ⌃ ⌥
783fcfb97c Fix tests 2022-08-15 07:52:32 -07:00
Rylan Polster
af99dfba00
Refactor on_system rubocops for use in casks 2022-08-14 17:31:07 -04:00
Carlo Cabrera
98a53e4781
language/python: support python3 from PATH in #detected_python_shebang
Some formulae are flexible about the version of Python3 that they use.
However, when we use `#detected_python_shebang` on these formulae, they
become coupled to the specific version of Python3 declared in the
formula.

This is harmful because
1. it prevents us from using `uses_from_macos "python"` even in formulae
   where we should be able to
2. it forces us to rebuild the formula whenever we make changes to the
   Python dependency when nothing but the shebang would have changed as
   a consequence of the rebuild

For an example of this, see Homebrew/homebrew-core#107905.

I'd also like to do this to get rid of some really terrible hacks we
have in `glib-utils` as a means of decoupling `glib` from the specific
versioned Python dependency it used to have.

See Homebrew/homebrew-core#103916, or Homebrew/homebrew-core#106045 for
a proposal to give the same treatment to `gobject-introspection`.
2022-08-13 01:11:09 +08:00
Rylan Polster
dac54fbbfb
Merge pull request #13536 from max-ae/generate-completions-dsl
Formula: add DSL to generate completions
2022-08-12 10:39:37 -04:00
Mike McQuaid
a73a1a665e
Merge pull request #13608 from lukaso/debug-symbols
Support for `--debug-symbols` for macos
2022-08-12 10:05:32 +01:00
Rylan Polster
dd2b1ce7e9
Merge pull request #13681 from Rylan12/cask-variables-rubocop
Add and adjust cask rubocops to handle variables
2022-08-11 20:05:08 -04:00
Rylan Polster
ad7e5ccc44
Add additional test 2022-08-11 19:14:21 -04:00
Lukas Oberhuber
2c829380b5 Test that --debug-symbols succeeds
Due to limitations of the test framework, this only tests
that the command with the --debug-symbols
flag succeeds and that on MacOS the `dsymutil` is run.
2022-08-11 10:54:18 -10:00
Mike McQuaid
40c4e5f228
Merge pull request #13671 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.34.1
build(deps): bump rubocop from 1.33.0 to 1.34.1 in /Library/Homebrew
2022-08-11 14:03:59 +01:00
Sean Molenaar
e90371f8ab
cask: add audit for incorrect signing 2022-08-11 09:11:29 +02:00
Lukas Oberhuber
3d60d610dd Merge branch 'master' into debug-symbols 2022-08-10 18:44:09 -10:00
Lukas Oberhuber
aa2682a098 These tests don't test anything
On MacOS, the compile flags `-g` are not set, and I can't figure out
how to set them here. `dsymutil` runs successfully regardless of if
there are debug symbols or not.
Same on linux therefore the test cannot succeed.
2022-08-10 16:55:19 -10:00
Rylan Polster
ec132ff851
Add and adjust cask rubocops to handle variables 2022-08-10 17:45:43 -04:00
Max Eisner
a666b1bce8
fix style 2022-08-10 22:31:43 +02:00
Rylan Polster
39071d5816
Remove arch from cask stanza ordering temporarily 2022-08-10 15:37:28 -04:00
Max Eisner
d819c949b4
fix test 2022-08-10 20:21:05 +02:00
Max Eisner
e091d62aa3
Merge branch 'master' into generate-completions-dsl 2022-08-10 19:10:44 +02:00
Max Eisner
00471be514
add test 2022-08-10 19:07:19 +02:00
Mike McQuaid
6b697470fd
brew style --fix
For https://github.com/Homebrew/brew/pull/13671
2022-08-10 14:19:33 +01:00
Rylan Polster
044fefdce9
Merge pull request #13657 from Rylan12/add-arch-and-variable-cask-dsl
Add `arch` cask DSL
2022-08-09 15:49:46 -04:00
Rylan Polster
19c955d19a
Fix tests 2022-08-09 14:54:33 -04:00
Rylan Polster
76ae20a12f
Re-add on_arch_conditional DSL 2022-08-09 11:34:52 -04:00
Carlo Cabrera
6d07c6eaa0
tests: update language/python/shebang spec 2022-08-09 22:38:05 +08:00
Sean Molenaar
8e49be58b3
Merge pull request #13623 from SMillerDev/fix/exceptions/report_issues_inreplace_head
brew.rb: tell users to fix head issues with inreplace
2022-08-08 16:48:24 +02:00
Sean Molenaar
03a489bf78
brew.rb: tell users to fix head issues with inreplace 2022-08-07 13:34:56 +02:00
Lukas Oberhuber
19a66e75c4 Second try at objdump call for linux 2022-08-06 10:06:32 -07:00
Lukas Oberhuber
f930dd58a0 Fix style 2022-08-05 17:02:10 -07:00