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
Mike McQuaid
430bb7c3a0
update: tweak git too old check.
...
Avoid trying to install and warning if system Git is too old but Git
is already installed.
2018-02-27 10:41:16 +00:00
Mike McQuaid
72f4d05418
Handle a too old system Git on OS X 10.8 and below
...
Needed for GitHub since:
https://github.com/blog/2507-weak-cryptographic-standards-removed
2018-02-26 16:08:10 +00:00
Alyssa Ross
adb8c252b0
info: sort HEAD keys by install date
...
This makes a lot more sense than sorting alphabetically by commit hash,
the previous behaviour.
2018-02-26 09:21:38 +00:00
Mike McQuaid
f2ce6489b2
Use more docs.brew.sh short links
...
These are nicer on the eyes.
2018-02-22 19:46:58 +00:00
Mike McQuaid
a9c64c319f
gist-logs: require API credentials.
...
Anonymous gists are going away shortly:
https://github.com/blog/2503-deprecation-notice-removing-anonymous-gist-creation
2018-02-19 16:14:32 +00:00
Chayoung You
b05d69f600
Format identifiers in oh1
2018-02-09 18:00:29 +09:00
Mike McQuaid
3a2e6b82fd
Make pinning more robust
...
Don’t autoremove pins on uninstall or upgrade and note this in the
manpage.
2018-02-05 10:59:11 +00:00
EricFromCanada
1d2b4ed321
docs: add more missing option descriptions
...
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
ilovezfs
69db925e8a
fetch: also fetch resources' patches
2018-01-22 01:10:14 -08:00
Mike McQuaid
de0fedeb09
upgrade --all: use odeprecated.
2018-01-21 13:39:14 +00:00
Mike McQuaid
b96ec879dc
(un)linkapps: hide from manpage, use odeprecated.
2018-01-21 13:38:44 +00:00
Mike McQuaid
8a45467ad9
Merge pull request #3661 from MikeMcQuaid/deprecate-default-formula
...
Deprecate default_formula Requirement DSL
2018-01-18 15:30:56 +00:00
Mike McQuaid
b17672a2b4
Merge pull request #3693 from ilovezfs/info-always-show-spec-options
...
info: show spec options for optionless formulae
2018-01-18 15:29:29 +00:00
ilovezfs
ebd50d136f
info: show spec options for optionless formulae
...
Previsiouly, info would not display --HEAD or --devel for formulae that
had no options other than those spec options.
2018-01-18 00:03:10 -08:00
Mike McQuaid
8cd0d85afb
rubocop 0.52.1
2018-01-15 16:17:32 +00:00
ilovezfs
17f80a44e6
Revert "Use Homebrew's gitconfig for various commands"
2018-01-15 07:30:56 +00:00
Mike McQuaid
253a41f523
Merge pull request #3670 from MikeMcQuaid/gitconfig
...
Use Homebrew's gitconfig for various commands
2018-01-14 18:17:06 +00:00
Mike McQuaid
fea90825fb
vendor-install: various portable ruby tweaks.
...
- Rename repository to homebrew-portable-ruby
- Add a new Bintray repository using new name
- Add GitHub releases mirror and try to use it
- Tell people not to file issues if they can't connect to Bintray or
GitHub: we're not here to provide ISP/proxy support.
2018-01-14 13:49:26 +00:00