Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
d6b563e752
Support min_named :formula_or_cask
.
2020-10-08 11:12:17 +02:00
Markus Reiter
f54b458cda
Allow installing casks with brew install
.
2020-09-27 22:53:32 +02:00
Markus Reiter
0240128f29
Document exceptions.
2020-08-26 03:13:58 +02:00
Mike McQuaid
3a91c37e66
Fix RuboCop checks.
2020-08-19 17:12:32 +01:00
Markus Reiter
b5363025a6
Refactor and document BuildEnvironment
.
2020-08-14 18:41:44 +02:00
Markus Reiter
7926f7fc82
Pass args.verbose?
to BuildError#dump
.
2020-08-06 16:12:52 +02:00
Mike McQuaid
fb0a6338b1
Remove more tap pinning code.
...
This was deprecated and removed a while ago.
2020-08-06 12:24:10 +01:00
Bo Anderson
8eb176f50b
exceptions: correct safe_system doc link
2020-07-16 02:52:28 +01:00
Jonathan Chang
76709d82c5
Fix brew style
.
2020-07-13 23:24:14 +10:00
Bo Anderson
1c73393b47
language/python: raise if we can't detect the Python to use for venv
2020-07-09 15:43:36 +01:00
Mike McQuaid
f951ea83d4
Fix brew style
.
2020-07-07 12:23:29 +01:00
William Ma
6e8f5d0958
Modify MultipleVersionsInstalledError to have a generic message
2020-07-03 18:25:49 -04:00
Dustin Rodrigues
f684a59fa5
bump-formula-pr: search for closed dupe PRs
2020-06-27 12:50:43 -04:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
...
Companion to https://github.com/Homebrew/brew/pull/7698 .
Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Mike McQuaid
ad32d387e9
exceptions: fix case for UsageError subclasses.
2020-03-05 09:25:14 +00:00
Michka Popoff
c46a30b575
brew: remove most traces of python@2
2020-02-17 22:38:24 +01:00
Mike McQuaid
243e703700
tap: default to full clones.
...
This makes `Tap` consistent with what the installer is doing.
Generally shallow clones get slower and slower (and more and more
pointless) the more they are fetched so don't make sense for our
use-case.
Keep the option around anyway because it's useful for integration tests.
2020-02-02 16:36:37 +01:00
Gautham Goli
acde828a45
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
2020-02-02 14:00:04 +01:00
Mike McQuaid
0e3ab6e6f2
exceptions: tweak build flags error message.
2019-10-11 09:02:41 +01:00
Jacob Middag
c6cb20a768
Fix frozen string bug
2019-10-11 09:34:43 +02:00
Cheng XU
9232ca4508
system_command: allow redacting secrets in the log
...
Add a new argument `secrets` to specify secret tokens, so we can redact them in the log.
2019-07-18 15:06:32 +08:00
Mike McQuaid
fc6bd2ea1c
Fixup more frozen string handling.
2019-04-20 14:07:29 +09:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
EricFromCanada
89f0fcedbe
whitespace fixes
2019-04-13 21:32:04 -04:00
EricFromCanada
fa6404e0f5
grammar fixes
2019-04-13 21:29:32 -04:00
Markus Reiter
62a0c2fed9
Retry with ditto
when “End-of-central-directory signature not found.”.
2019-04-02 13:27:20 +02:00
Mike McQuaid
774adaf435
exceptions: remove unused scp exception.
...
The code was removed but the exception was not.
2019-03-28 10:34:02 +00:00
Mike McQuaid
14dc7d6bb8
exceptions: fix RuboCop warning with present?
2019-03-18 14:30:58 +00:00
Maxim Belkin
c44c8da5e0
exceptions.rb: remove unnecessary chomps
...
remove `chomp!` from method 'initialize' in class 'BuildFlagsError'
2019-02-11 05:27:22 -06:00
Maxim Belkin
db7997e1a0
exceptions.rb: move alternative solution to a new line
2019-02-11 01:02:31 -06:00
Shaun Jackman
265ab264fd
ErrorDuringExecution: Fix wrong number of arguments
...
Error: wrong number of arguments (given 1, expected 2)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:548:in `block in initialize'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:557:in `map'
2019-01-02 10:12:12 -08:00
FX Coudert
6b779c4f6d
exceptions.rb: avoid failure if no arguments
2018-11-07 15:44:21 +01:00
EricFromCanada
20167e5f1b
Adjust comments to tidy API docs output.
2018-10-18 21:42:43 -04:00
Markus Reiter
16618d0fc7
Use ActiveSupport’s #pluralize
and #to_sentence
.
2018-10-07 23:10:56 +02:00
Markus Reiter
c4d418e126
Use ActiveSupport’s #second
.
2018-10-07 23:10:56 +02:00
samuela
eed915103b
"occured" -> "occurred"
2018-10-05 12:04:19 -07:00
William Woodruff
2246780f0b
Merge pull request #4853 from woodruffw/error-pipe-check-closed
...
utils/fork: Check if error pipe is closed
2018-09-19 10:00:01 -04:00
William Woodruff
a59b708de9
exceptions: Language nit in ChildProcessError
2018-09-18 22:22:33 -04:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +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
Mike McQuaid
7df5b7057e
Revert "Use JSON to marshal errors from children"
2018-08-18 08:20:13 +01:00
William Woodruff
5c90833f0a
Use JSON to marshal errors from children
2018-08-17 15:23:08 -04:00
Markus Reiter
8ae284e871
Use SystemCommand
for curl
.
2018-08-01 01:04:42 +02:00
ilovezfs
cd2b85c40f
Revert "Use SystemCommand
for curl
."
2018-07-29 21:45:04 -07:00
Markus Reiter
355df64d93
Use SystemCommand
for curl
.
2018-07-29 01:23:33 +02:00
Markus Reiter
2712fcaa67
Use interleaved output for ErrorDuringExecution
.
2018-07-19 16:53:11 +02:00
Markus Reiter
2452b27866
Refactor ErrorDuringExecution
.
2018-07-19 16:41:27 +02:00