Eli Young
8734848829
Support enabling auto-updates for non-GitHub taps
2018-04-24 11:10:48 -07:00
Markus Reiter
16fb563d49
Refactor MissingFormula
spec.
2018-04-20 19:11:22 +02:00
Steven Peters
2adfb77cd8
missing: exit nonzero if missing deps are found
2018-04-12 22:48:02 -07:00
Mike McQuaid
ae5e904c08
Only read curlrc if HOMEBREW_CURLRC is set.
...
This reverses the previous, incorrect order.
2018-04-09 15:43:03 -07:00
Mike McQuaid
99b89e4866
Merge pull request #4022 from stefansundin/disable-curlrc
...
Tell curl to not use .curlrc
2018-04-08 16:37:49 -07:00
Mike McQuaid
54a594ea23
Merge pull request #3870 from GauthamGoli/bump-formula-gh-api
...
bump-formula-pr: Replace `hub` with GH API calls
2018-04-08 16:02:51 -07:00
Mike McQuaid
0bd5869319
Add/use HOMEBREW_CURLRC variable.
2018-04-08 15:51:58 -07:00
Mike McQuaid
c73e873893
Merge pull request #4027 from SENG480-18/master
...
Simplify `search_taps` method and handle errors
2018-04-08 23:17:51 +01:00
Mike McQuaid
cffa5a9864
Disable/delete/add more deprecations
...
Move various `odeprecated` to `odisabled` and delete uses of
`odisabled`.
2018-04-08 14:57:17 -07:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Stevie Howard
d74721acc7
More granular 'brew search' query == simpler code
2018-04-06 23:14:30 -07:00
Stevie Howard
296d48ba7a
Handle error when 'brew search' can't reach GitHub
2018-04-06 22:12:29 -07:00
Stefan Sundin
0ec47813f1
Prevent .curlrc from being loaded.
2018-04-06 14:13:26 -07:00
Mike McQuaid
7095738d1d
Remove config/doctor checks we no longer need
...
A bunch of these were needed before superenv, environment filtering or
on now long-unsupported versions of macOS.
2018-04-02 09:40:39 +01:00
Gautham Goli
1e0f9fb835
bump-formula-pr: Replace hub with GH API calls to fork and open Pull request
2018-03-31 19:44:55 +05:30
Mike McQuaid
49038a2cd9
Remove mentions to official taps
...
There are none remaining. We don’t want PHP to get the deprecated
messages until all formulae have been deleted so that will be in a
later PR.
2018-03-31 13:42:33 +01:00
Mike McQuaid
33b5ac78ad
cmd/switch: improve usability.
...
- Ensure that we output the available versions where relevant
- Use `<formula>` to be consistent with other commands’ help
- General code cleanup
2018-03-30 15:19:13 +01:00
Mike McQuaid
5b68bb84d2
cmd/upgrade: output the outdated version.
...
This makes it clearer what version is being updated to what version.
2018-03-30 15:00:45 +01:00
Mike McQuaid
ed8cae93ab
cmd/install: mention brew reinstall
...
If people are trying to `brew install` an existing version it’s worth
pointing out to them how they can reinstall (as it’s pretty much the
only case where we’re not already suggesting another command).
2018-03-30 14:58:36 +01:00
Mike McQuaid
4c07685258
cmd/help: usability tweaks.
...
- Don’t mention `brew home` or `brew options` as their output is in
`brew info` (and the `(…|…)` is weird.
- Use full length flags for `-v` and `-d` to make more obvious what
they are doing
- Don’t use `Developers`; instead point out it’s how you contribute
- Mention `brew commands` for `COMMAND` output (like we do with
`FORMULA` and `brew search`)
- Point towards `docs.brew.sh`
2018-03-30 14:57:38 +01:00
Mike McQuaid
ce9c8c6808
cmd/leaves: handle missing formulae.
...
We can't get dependencies of unavailable formulae so don't try.
Fixes #3995 .
2018-03-29 10:58:01 +01:00
Mike McQuaid
dda1dd54eb
Merge pull request #3982 from MikeMcQuaid/rubocop-rspec
...
style: add optional rubocop-rspec support.
2018-03-28 11:21:56 +01:00
Mike McQuaid
74d6d39e45
deps: use Formula#runtime_dependencies.
2018-03-27 14:52:48 +01:00
Mike McQuaid
ff7294ee1f
uses: use Formula#runtime_dependencies.
2018-03-27 14:52:47 +01:00
Mike McQuaid
05d06bcc50
cmd/leaves: general cleanup.
2018-03-27 14:52:47 +01:00
Harald Nordgren
5db2ed4fbf
brew install: search casks if not found
2018-03-25 19:14:14 +02:00
Mike McQuaid
58017511a8
style: add optional rubocop-rspec support.
...
It's really noisy and too pedantic for us to use now but I got it
working locally and used `--fix` to generate #3981 so let's add it as an
option for now.
2018-03-25 13:34:57 +01:00
Mike McQuaid
592bafe24e
Refactor dependencies usage
...
Reuse more code to avoid errors due to duplication.
2018-03-24 16:55:16 +00:00
Buck Evan
0a2e649f00
type -P
is more portable than which
...
Migrated from https://github.com/Linuxbrew/brew/pull/621
2018-03-18 16:51:22 -07:00
Mike McQuaid
63e8817950
Merge pull request #3937 from MikeMcQuaid/upgrade-pinned-warning
...
upgrade: make pinned error have correct exit code.
2018-03-17 17:40:10 +00:00
Mike McQuaid
96ff688b9d
upgrade: make pinned error have correct exit code.
...
Also, display before saying "no packages to upgrade".
Fixes #3936 .
2018-03-16 20:31:20 +00:00
Mike McQuaid
70a9a67411
Don't use Linuxbrew/homebrew-core (yet, at least).
...
This can't be tapped on vanilla Homebrew/brew because things like e.g.
`GlibcRequirement` are missing. We will put this back when the Linuxbrew
to Homebrew migration is complete.
2018-03-16 19:30:18 +00:00
Mike McQuaid
6c7e8608be
Merge pull request #3924 from MikeMcQuaid/include-test
...
install: add --include-test option.
2018-03-16 14:21:17 +00:00
Mike McQuaid
057d3461a9
Merge pull request #3932 from MikeMcQuaid/external-commands-docs
...
Improve external command documentation
2018-03-16 14:21:06 +00:00
Mike McQuaid
e50c40b9c6
uses: add --include-test support.
2018-03-16 09:29:31 +00:00
Mike McQuaid
b23f66982f
Improve external command documentation
...
Extract `brew bundle` and `brew services` docs from their help. Add a
little for `brew cask` until we can think about e.g. merging the
manpages.
2018-03-15 16:25:14 +00:00
Mike McQuaid
82e82b7fbc
install: add --include-test option.
...
Allow at `install` (or `install --only-dependencies`) time to specify
that test dependencies should be installed. This will allow simplifying
code in `brew test-bot`.
This could also be made an environment variable if desired by
maintainers.
2018-03-15 13:37:34 +00:00
Mike McQuaid
1dfeff7274
deps: don't display recursive test dependencies.
...
You only care about the test dependencies for the specific formula you
are testing right now.
2018-03-14 15:41:20 +00:00
Mike McQuaid
86a6361f4e
install: make --only-dependencies fill in missing.
...
This makes the `brew install --only-dependencies` command more useful by
filling in missing dependencies for a formula even if it's already
installed.
2018-03-13 09:43:29 +00:00
Mike McQuaid
e817bba18d
upgrade: add HOMEBREW_UPGRADE_CLEANUP variable.
...
Allow users to specify they want `brew upgrade --cleanup` to always be
run when they run `brew upgrade`.
2018-03-12 11:05:06 +00:00
Peter Powell
e71b2d1737
upgrade: fix the man page wrongly saying that it will upgrade pins.
...
This is incorrect as in order to upgrade a pinned package it must
first be unpinned.
2018-03-10 12:07:13 +00:00
Mike McQuaid
83cca40fc9
RuboCop 0.53.0 manual fixes.
2018-03-08 14:10:02 +00:00
Mike McQuaid
e03f07f302
Rubocop 0.53.0 automatic fixes.
2018-03-08 14:10:02 +00:00
Mike McQuaid
924c4af3de
dep*: fix more :test dependency resolution.
2018-03-08 09:46:53 +00:00
Mike McQuaid
d32fc4508f
deps: fix test? typo.
2018-03-08 08:36:01 +00:00
Mike McQuaid
53a71a79b3
Merge pull request #3875 from MikeMcQuaid/test-deps
...
Allow :test dependencies.
2018-03-08 08:19:15 +00:00
Mike McQuaid
ba4ac75543
Merge pull request #3836 from alyssais/info_sort
...
info: sort HEAD keys by install date
2018-03-06 08:35:00 +00:00
Mike McQuaid
fea9bc1e42
Allow :test dependencies.
...
These specify that they are needed by the test block. This can be
combined with `:build` to ensure that this formula isn't uninstalled
by `brew test-bot` when running `test do` blocks on our CI.
2018-03-05 10:36:39 +00:00
Teddy Wing
ee004cb9c7
cmd/upgrade: Change build.build_bottle?
to build.bottle?
...
I received the following error when attempting to use the `upgrade`
command on a tap:
$ brew tap teddywing/passextract https://github.com/teddywing/Passextract.git
$ brew upgrade --verbose teddywing/passextract/passextract
Updating Homebrew...
==> Upgrading 1 outdated package, with result:
teddywing/passextract/passextract 0.4.0
Error: Calling build.build_bottle? is disabled!
Use build.bottle? instead.
/usr/local/Homebrew/Library/Homebrew/cmd/upgrade.rb:121:in `upgrade_formula'
Or, even better, submit a PR to fix it!
Change the method call to use the (presumably) newer version.
2018-03-04 12:38:33 +01:00
Mike McQuaid
2205f62ec6
irb: add pry support.
...
Make `brew irb` optionally support `pry`. While doing so, also make it a `dev-cmd`.
2018-02-28 11:36:23 +00:00