| Age | Commit message (Collapse) | Author |
|
|
|
Remove pending tests that are never run on CI (i.e. require `--online`),
remove fixtures for those tests and just make `--official-cmd-taps`
run by `--online` instead.
|
|
|
|
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.
```
|
|
|
|
If you `brew install` a formula that's already installed you get:
Warning: ripgrep-0.5.1 already installed
If you `brew install` an outdated formula that's installed you get:
Error: ripgrep-0.5.1 already installed. To install this version, first
`brew unlink ripgrep`
Instead, suggest that the user should `brew upgrade` in this case. If
the formula isn't outdated use the previous message.
|
|
|
|
Use GitHub's code search API to search using the filename based on the
search query. This means we only need a single HTTP call and no more
multithreading madness. This also means we're able to search everything
in the Homebrew and Caskroom organisation by default without having to
maintain a list of things to search (and not) in here.
|
|
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
|
|
- Tweak the way offline skipping happens
- Skip more tests that break when offline
- Hide more stdout output from tests.
|
|
Commit 4cae6a724e6d684eb157dd6d7328755694f228b2 introduced the message,
but it printed the wrong path, e.g. for `brew link sqlite`:
```
If you need to have this software first in your PATH instead consider running:
echo 'export PATH="/usr/local/opt/sqlite:$PATH"' >> ~/.zshrc/bin
```
where `/bin` is appended at the end, but should be inserted before
`:$PATH`: `echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc`.
This patch fixes that and updates a test to verify it.
|
|
The structure should be consistent, so there are always pinned and
pinned_version fields even if there are no pinned versions for a given formula.
|
|
|
|
Split the tests up into quiet and verbose output with contexts.
|
|
This wasn’t adapted to the new, multiple repository world.
|
|
In this case `HOMEBREW_VERSION` is `>1.1.0 (no git repository)` so these
tests failed. This was the cause of the Homebrew/homebrew-test-bot
Linux CI failures as it was testing a shallow clone.
|
|
|
|
|
|
Convert `brew uninstall` test to spec.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Convert `brew info` test to spec.
|
|
Convert `brew switch` test to spec.
|
|
Convert `brew upgrade` test to spec.
|
|
Convert `brew readall` test to spec.
|
|
Convert `brew linkapps` test to spec.
|
|
Convert `brew uses` test to spec.
|
|
Convert `brew unlink` test to spec.
|
|
Convert `brew unpack` test to spec.
|
|
Convert `brew uninstall` test to spec.
|
|
Convert `brew prune` test to spec.
|
|
Convert `brew help` test to spec.
|
|
Convert `brew bundle` test to spec.
|
|
Convert `brew unlinkapps` test to spec.
|
|
Convert `brew missing` test to spec.
|
|
Convert `brew pin` and `brew unpin` test to spec.
|
|
Convert `brew --cellar` test to spec.
|
|
Convert `brew doctor` test to spec.
|
|
Convert `brew --repository` test to spec.
|
|
Convert `brew services` test to spec.
|
|
Convert `brew cask` test to spec.
|
|
Convert `brew irb` test to spec.
|
|
Convert `brew tap-new` test to spec.
|
|
Convert `brew --prefix` test to spec.
|
|
Convert `brew --version` test to spec.
|
|
Convert `brew list` test to spec.
|