142 Commits

Author SHA1 Message Date
Mike McQuaid
1b3f5980be
Merge pull request #13839 from apainintheneck/no-autoremove-build-deps-when-built-from-src
autoremove: ignore build deps when built from src
2022-09-14 13:10:14 +01:00
apainintheneck
f068f74f55 Move autoremove code to util and add tests 2022-09-13 23:23:48 -07:00
Mike McQuaid
7349c2b996
brew style --fix 2022-09-13 09:43:09 +01:00
Bo Anderson
15280ba107
test: avoid improper, late usage of formula DSL 2022-08-31 20:40:39 +01:00
Bo Anderson
768eb1d51a
test/formula_spec: stub Tap#versioned_formulae_names 2022-08-25 16:13:24 +01:00
Mike McQuaid
c294dcc616
glibc related cleanup
Extracted from https://github.com/Homebrew/brew/pull/13577
2022-08-23 12:42:02 +01:00
Max Eisner
a666b1bce8
fix style 2022-08-10 22:31:43 +02: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
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
Kevin
93bf9e5ba2
Merge pull request #13532 from apainintheneck/add-uninstall-autoremove
cmd/uninstall: Add env variable that runs autoremove after uninstalls
2022-08-03 18:10:32 -07:00
Rylan Polster
34a1bc6618
Use SimulateSystem for ignore_missing_libraries 2022-07-23 03:09:29 +02:00
Rylan Polster
7255df1ec2
Only run to_hash_with_variations test on macOS 2022-07-21 17:33:19 +02:00
Rylan Polster
6c35317732
Add and update tests 2022-07-21 16:41:23 +02:00
apainintheneck
cb91f8b665 Add tests for retrieving formula based on dependents
Also, made sure to clear formula cache before
and after autoremoving packages.
2022-07-17 00:39:23 -07:00
apainintheneck
fe83500617 Moved autoremove logic into cleanup.rb and formula.rb
Cleanup.rb:
- Added #autoremove method
- #autoremove is called in clean when HOMEBREW_AUTOREMOVE is set

Formula.rb:
- Added #unused_formulae_with_no_dependents and helpers

Removed old autoremove.rb module.
2022-07-14 13:16:26 -07:00
Rylan Polster
5e5c78ebef
Fix tests and improve style 2022-07-11 04:03:37 -04:00
Rylan Polster
57417dd016
Add on_system :linux, macos: wrapper to OnSystem 2022-07-11 02:19:24 -04:00
Rylan Polster
5ec19adf58
Rename Override module to SimulateSystem 2022-06-28 15:35:20 -04:00
Rylan Polster
6ebd5174d6
Update tests for on_* methods in formulae and casks 2022-06-24 14:39:17 -04:00
Issy Long
cb2a09e65e
Fix (auto-correct) more RSpec/BeNil offenses
- The `RSpec/BeEq` auto-corrections made more `RSpec/BeNil` offenses, so another go of `brew style --only=RSpec/BeNil --fix\` is needed.
2022-03-01 00:36:37 +00:00
Issy Long
72e48024f0
Fix (auto-correct) RuboCop Rspec/BeEq offenses 2022-03-01 00:10:14 +00:00
Issy Long
6b76fd012a
Fix (auto-correct) RuboCop RSpec/BeNil offenses 2022-03-01 00:10:10 +00:00
Mike McQuaid
7ec6d41a1d
Revert "formula: remove OnOS." 2022-02-24 12:31:32 +00:00
Mike McQuaid
73951a01fc
formula: remove OnOS. 2022-02-22 10:19:09 +00:00
Carlo Cabrera
504dfa8494
Revert "remove on_os from formula"
This is causing `post_install` failures. Spotted in
Homebrew/homebrew-core#91763.

This reverts commit fc7462acd5ffb7cc393d2b56b989e96112ade896.
2021-12-21 20:43:57 +08:00
hyuraku
fc7462acd5 remove on_os from formula 2021-12-20 23:06:42 +09:00
Sean Molenaar
4cb8afeeef
service: add timer support for systemd 2021-11-30 11:05:11 +01:00
Bo Anderson
572c7cd179
formula: make each instance have separate spec references
This fixes SoftwareSpec#owner being mixed up if there are multiple formula references.
This in turn fixes --force-bottle not working in some scenarios like `brew reinstall`.
2021-10-26 15:03:33 +01:00
Bo Anderson
16afcff557
formula: fix error in Formula#specified_path with aliases 2021-09-22 02:08:18 +01:00
Sean Molenaar
869b0ea519
Formula: use opt_prefix for service helpers 2021-07-26 11:11:34 +02:00
Rylan Polster
aebaa7f8df
formula: only include sha256 for core formulae in bottle JSON 2021-06-05 12:31:55 -04:00
Rylan Polster
d60f549a48
info: add --bottle option for JSON bottle info 2021-06-05 12:27:24 -04:00
Rylan Polster
8b0f7e7ada
formula: add to_bottle_hash method 2021-06-03 12:59:42 -04:00
Connor Mann
0da4c4e3ce
Update tests 2021-05-29 13:16:27 -04:00
Rylan Polster
745d7ff813
formula: use only_if: in pour_bottle? 2021-05-20 11:24:08 -04:00
Carlo Cabrera
3c34c13056
formula: tweak preset pour_bottle? symbols
Let's rename `reason` to `requirement` so the preset symbol can just be
`:clt`. See Homebrew/homebrew-core#77509.
2021-05-19 02:21:59 +01:00
Rylan Polster
722a8eda3c
Fix tests 2021-05-18 01:55:06 -04:00
Rylan Polster
69e29a358b
Raise errors on invalid symbol/block combinations 2021-05-17 15:33:09 -04:00
Rylan Polster
fb3bfbb65c
Remove prefix option and add reason argument name 2021-05-17 10:55:46 -04:00
Rylan Polster
9e35b4de21
fix test 2021-05-15 14:51:11 -04:00
Rylan Polster
5e9fcafbd8
formula: add preset pour_bottle? symbols 2021-05-15 14:05:50 -04:00
Mike McQuaid
576ec2c9a3
Merge pull request #9517 from SMillerDev/plist_generator
formula: allow plists to be generated
2021-04-09 13:59:55 +01:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01:00
Bo Anderson
20d86c0185
Refactor some tag handling into a Utils::Bottles::Tag class 2021-04-08 17:23:57 +01:00
Sean Molenaar
b927ecfd85
Fix formulae method loading
Co-authored-by: nandahkrishna <me@nandahkrishna.com>
2021-04-08 10:16:57 +02:00
Sean Molenaar
4427fa283f
formula: allow plists to be generated 2021-04-08 10:16:57 +02:00
Bo Anderson
e49a338896
Implement caching for dependency expansion 2021-03-20 16:56:00 +00:00