| Age | Commit message (Collapse) | Author |
|
|
|
Safe navigation needs to be chained to preserve equivalence.
Fixes a bug introduced by 01e9ec9a in #3183.
|
|
- Use it in more places where it saves code
- Allow using symbolic keys for a cleaner interface
- Use `HOMEBREW_GEM_*` instead of `GEM_OLD_*`
|
|
|
|
|
|
|
|
|
|
|
|
That tap is now defunct.
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
|
|
Detect `Tap` in `CaskLoader`.
|
|
That repo is now defunct. Reference homebrew-core instead.
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
|
|
Enable more deprecations.
|
|
keg: correctly cleanup old aliases.
|
|
|
|
May as well use the more secure link when possible.
|
|
Aliases that include `/`s end up creating directories and this is bad.
|
|
It's been long enough that these have been commented out so let's
enable them globally.
|
|
|
|
|
|
|
|
|
|
|
|
rubocop: don’t allow Perl regex backrefs.
|
|
|
|
|
|
|
|
|
|
|
|
Convert `FormulaLock` to more generic `LockFile`.
|
|
Improve the messaging around `brew install` when there's a possible user
action such as an `upgrade` or `link` and don't tell people to
`install --force` when it's unnecessary.
While I did this, tweak the output and function usage in a couple of
related places.
Some example output before this change:
```
Warning: openssl is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: mysql@5.6 is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: analog-6.0_1 already installed
Warning: bash-completion@2-2.5 already installed, it's just not linked.
```
Some example output after this change:
```
Error: openssl 1.0.2k is already installed
To upgrade to 1.0.2l, run `brew upgrade openssl`
Warning: mysql@5.6 5.6.36_1 is already installed
Warning: analog 6.0_1 is already installed
Warning: bash-completion@2 2.5 is already installed, it's just not linked.
You can use `brew link bash-completion@2` to link this version.
```
|
|
|
|
formula: ensure HOMEBREW_PREFIX/bin in test PATH.
|
|
Only likely to kick in when environment filtering is enabled.
Otherwise we need to tediously add a dramatic number of PATHs to tests
or recurse through the runtime formulae dependencies and add all them.
CC @ilovezfs
|
|
If the formula is already installed and they've been removed: that's ok.
Fixes #2625.
|
|
Use scoped RSpec matchers.
|
|
Display formula conflict reasons
|
|
|
|
This may result in a slightly varied build but it’s generally just far
less annoying to be able to access all your e.g. shell configuration.
|
|
Also, don't delete them after that. This means that `brew postinstall`
becomes a way to easily reinstall configuration files for any formula
without needing any changes to any bottles or requiring a reinstall.
|
|
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
|
|
Hide sensitive tokens from install/test/post.
|
|
Hide these tokens to avoid malicious subprocesses e.g. sending them
over the network. Also, support using these tokens with environment
filtering and clear `HOMEBREW_PATH` from subprocesses to stop them
sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s
PATH for e.g. `brew doctor` etc.
|
|
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
|
|
The documentation should help a developer understand what the
parameter is for. "stupid example" doesn't cut it.
|
|
MikeMcQuaid/formula-missing-dependencies-handle-unavailable-formula
formula: handle missing deps when formula missing.
|
|
Otherwise return `nil`.
Fixes https://github.com/Homebrew/brew/issues/2417
|
|
We could try and get a partial result but given it'll also be wrong it
feels simpler to just return an empty array.
Fixes #1928.
Fixes #2027.
Closes #2058.
Fixes https://github.com/Homebrew/homebrew-core/issues/11827.
|
|
formula: clarify caveats usage.
|
|
|
|
|