Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
8a1f8ab858
Pass args
to FormulaInstaller
instead of using global args
.
2020-07-25 04:21:21 +02:00
Mike McQuaid
ef95b59ed4
Remove HomebrewArgvExtension
...
Fixes #5730
2020-05-23 19:39:11 +01:00
Mike McQuaid
e5d15c8b19
Merge branch 'master' into argv-cleanup-26
2020-05-23 13:44:42 +01:00
Michelle Nguyen
2264c08cee
Fetch formula resources before unlinking during upgrade.
...
Fixes #6374 .
2020-05-11 09:37:56 +01:00
Gautham G
b40e33aeb8
ARGV: Deprecate ARGV.cc and replace with Homebrew.args.cc
2020-05-04 11:14:55 +05:30
Mike McQuaid
5dd8ead51a
Rename Formula#installed? to Formula#latest_version_installed?
...
This naming has always been a bit weird and confusing so let's change
it and provide a `compat` fallback for later deprecation.
2019-12-03 11:42:42 +00:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Markus Reiter
e5aaf36f7d
Add spec for FormulaInstaller#audit_installed
.
2018-09-19 20:07:15 +02:00
William Woodruff
367629d289
utils: Use JSON to marshal child errors
...
Replaces our serialization of child process
errors via Marshal with JSON, preventing
unintentional or malicious code execution outside
of the build sandbox.
Additionally, adds tests for the new behavior.
2018-09-04 11:03:32 -04:00
Markus Reiter
7762ce32aa
Use more descriptive heredoc names.
2018-07-11 18:15:30 +02:00
Mike McQuaid
5e1806e796
test: rubocop-rspec style auto-corrects.
...
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Mike McQuaid
e5c82dd3d9
Deprecate requirements harder
...
Remove more Requirement logic to enable future removal of default
formula logic. Also, output deprecations, convert symbol requirement
usage to deps and simplify the compatibility code for the direct
Requirement usage.
2018-01-18 08:31:20 +00:00
Mike McQuaid
d54e670a64
requirements: move more to compat.
2017-12-30 20:56:55 +00:00
Mike McQuaid
b9cf7b2bbc
formula_installer: avoid irrelevant build deps.
...
If dependents are already installed ensure their build dependencies (and
requirements) don't end up in the dependency/requirement tree.
Fixes #3033 .
2017-12-07 14:56:12 +00:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Markus Reiter
f5af3fe0cd
Delete :focus
.
2017-08-05 18:09:09 +02:00
Mike McQuaid
e755505c70
Merge pull request #2969 from MikeMcQuaid/default-formula-bottles
...
formula_installer: use default_formula for bottles
2017-07-30 18:41:10 +01:00
Mike McQuaid
a83baba8b5
formula_installer: use default_formula for bottles
...
This was the original, intended functionality before this was broken
in fe117bf79b244c42b7e4049d353c3c003eae4880.
Fixes https://github.com/Homebrew/homebrew-core/issues/13680 .
2017-07-30 16:56:24 +01:00
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Markus Reiter
3cdf8f938a
Use scoped RSpec matchers.
2017-05-15 17:23:40 +02:00
Mike McQuaid
51ca9025a5
formula_installer_spec: add default formula test.
...
Test the situation where a requirement is satisfied by a non-formula
but the `default_formula` is also installed.
2017-03-29 09:34:52 +01:00
Mike McQuaid
0cc9d93885
formula_installer: tweak req formula additions.
...
Rather than just checking if a requirement's dependency is installed or
not check if the requirement was actually satisfied by a particular
formula rather than e.g. just having a `default_formula` defined.
2017-03-25 10:59:54 +00:00
Markus Reiter
8b60412c99
Convert FormulaInstaller test to spec.
2017-02-27 13:45:06 +01:00