Mike McQuaid
4cae6a724e
link: tell users of brew link --force
about opt.
...
If people are force-linking keg-only things they should probably be told
that they can add the opt prefix to their PATH instead.
2017-03-23 08:42:29 +00:00
Mike McQuaid
35a4836dc3
search: silence searching git log.
2017-03-23 08:39:29 +00:00
Mike McQuaid
c458ffbd24
install: immediately print FormulaUnavailableError.
2017-03-23 08:39:29 +00:00
Mike McQuaid
e55f3a0cc5
info: immediately print FormulaUnavailableError.
2017-03-23 08:39:29 +00:00
Mike McQuaid
b41a88eac4
update-report: check migration symlinks.
...
Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already
been migrated so can be skipped.
2017-03-21 15:21:23 -07:00
Mike McQuaid
4117d198cc
Merge pull request #1732 from zmwangx/hint-migrations
...
Hint at new location of migrated formulae
2017-03-21 17:31:31 +00:00
Mike McQuaid
ec0737d71f
Merge pull request #2370 from MikeMcQuaid/update-migrate-all-formula
...
update-report: migrate all formulae every time.
2017-03-21 14:40:07 +01:00
Mike McQuaid
f59eb358c2
missing_formula: subsume historic logic.
...
These methods belong together so combine them in a single class to
provide a simpler API.
2017-03-20 20:37:12 +01:00
Mike McQuaid
80e95b684e
blacklist: move to missing_formula class instead.
...
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00
Mike McQuaid
623c95b3f8
cmd/log: improve output messaging.
...
This wasn’t adapted to the new, multiple repository world.
2017-03-20 18:20:31 +02:00
Mike McQuaid
8cedd62750
search: tweak specific formula match formatting.
2017-03-20 18:20:31 +02:00
Zhiming Wang
1c10a6260f
Hint at new location of migrated formulae
...
Partial implementation of
https://github.com/Homebrew/brew-evolution/pull/15 , along with the ability to
search for deleted formulae in git history (inspired by #1996 ) which is not
described in the proposal.
See also: #1371 .
2017-03-20 18:20:31 +02:00
Mike McQuaid
4af8bdf111
update-report: migrate all formulae every time.
...
Unmigrated formulae cause hard-to-debug issues and relying on detection
on Git alone is faster but not comprehensive. Instead, iterate through
renamed, installed formulae every time and migrate them.
Closes #1770 .
2017-03-20 18:10:28 +02:00
Mike McQuaid
ae43415fb4
update-report: migrated formulae were not deleted.
...
The taps they were migrated to are auto-tapped if not already tapped
anyway so don't show them as deleted to avoid confusion.
2017-03-20 15:28:24 +02:00
ilovezfs
52d1d2cc3f
upgrade: keg_only before non-keg_only formulae
...
Avoids unnecessary conflicts when a previously non-keg_only formula is
in the way by prioritizing keg_only before non-keg_only formulae.
This change is motivated by the upgrade of gnupg 2.0 to 2.1, since the
latter no longer depends on the gpg-agent formula, which, even if made
keg_only, still causes the link step to fail for 2.1, as gpg-agent's
non-keg version won't have been upgraded to the keg_only version at that
point (alphabetically gnupg precedes gpg-agent).
2017-03-17 12:39:43 -07:00
Markus Reiter
d1995dad4b
Use a Formulary
-like approach to load Casks.
2017-03-16 12:10:19 +01:00
Mike McQuaid
c67c338a06
Merge pull request #2322 from MikeMcQuaid/autoupdate-stop-skipping-no-formula-taps
...
update: stop autoupdate skipping no formula taps.
2017-03-12 20:22:29 +00:00
Mike McQuaid
282622e449
update: stop autoupdate skipping no formula taps.
...
This will be slightly slower if you have a bunch of non-formula (i.e.
command or cask) taps but it avoids the confusion of having Homebrew
saying it's updated when it only did so selectively.
Fixes #1946 .
2017-03-12 09:13:27 +00:00
Markus Reiter
c594ffefbc
Add Formatter::pluralize
.
2017-03-11 21:12:51 +01:00
Mike McQuaid
fe59fde8f8
style: improve Rubocop error handling.
...
- Check if the JSON is definitely invalid (< 2 characters)
- Output the arguments that were passed to Rubocop
2017-03-08 09:26:07 +00:00
Mike McQuaid
3aa088dcaf
Merge pull request #2272 from EricFromCanada/master
...
Add more flags and descriptions to man pages.
2017-03-06 18:00:39 +00:00
Markus Reiter
3e7f94d5b5
Move cask
to cmd/
.
2017-03-06 11:41:29 +01:00
EricFromCanada
aee23ccb03
Add more flags and descriptions to man pages.
2017-03-05 21:45:15 -05:00
Mike McQuaid
0a8c8f90b6
Merge pull request #1708 from joshka/feature/install-tap-cmd-completions
...
install tap cmd completions
2017-02-27 08:42:17 +00:00
Joshua McKinney
25396d9c4d
Install tap command completions and manpages
...
Taps can include completion scripts for external commands under
`completions/bash`, `completions/fish`, or `completions/zsh`. `brew tap`
will automatically install these into the correct directories during
install.
2017-02-26 15:40:52 -06:00
EricFromCanada
afc539f86e
Update brew's man page formatting and grammar
...
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00
Markus Reiter
9d512be63c
Convert brew irb
test to spec.
2017-02-23 21:19:30 +01:00
Zhiming Wang
95f9af24d3
update-report: unlink rather than uninstall --force formula when ...
...
migrating a formula to a cask.
2017-02-17 19:21:27 -05:00
Mike McQuaid
8a10a413a4
Merge pull request #1995 from MikeMcQuaid/log-follow-renames
...
log: follow renames.
2017-02-13 08:34:12 +00:00
Mike McQuaid
75bdded6f2
Merge pull request #1994 from MikeMcQuaid/prefix-opt
...
--prefix: use opt_prefix when available.
2017-02-13 08:32:54 +00:00
Markus Reiter
f48857d246
Use constants for RuboCop version.
2017-02-12 23:06:35 +01:00
Mike McQuaid
735532840d
log: follow renames.
...
Now that we can rename formulae this makes this command more useful
for viewing longer histories.
2017-02-12 16:53:22 +00:00
Mike McQuaid
e07a587f42
--prefix: use opt_prefix when available.
...
Fixes #1952 .
2017-02-12 16:17:56 +00:00
Alyssa Ross
9e97eadccb
rubocop: trailing comma in multiline method calls
...
Discussed in
https://github.com/Homebrew/brew/pull/1987/files#r100693581 .
This was originally ommitted because it wasn't compatible with Ruby 1.8.
(See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971 ).
2017-02-12 15:11:38 +00:00
Thomas Maurer
6594650eb1
Pass invalid option names to formula installer
...
This is the same that happens in the command 'install'. By passing
the invalid option names, we enable the formula installer to output
warnings if necessary.
2017-02-04 18:10:37 +01:00
Mike McQuaid
276d8805ca
update: note migrations may be performed.
...
As requested in https://github.com/Homebrew/homebrew-core/issues/9316 .
2017-01-29 17:30:44 +00:00
Dominyk Tiller
c2b3f1db27
style: update rubocop to 0.47.1
2017-01-27 21:32:50 +00:00
Mike McQuaid
3c91f5858a
update-reset: checkout with --force.
...
Otherwise it won't overwrite unmerged changes.
2017-01-26 16:29:39 +00:00
Mike McQuaid
f0249643d4
formula_installer: use attr_accessor for installed_*
2017-01-18 16:10:28 +00:00
Mike McQuaid
5424db1263
upgrade: temporarily comment out for fix.
2017-01-18 15:25:17 +00:00
Mike McQuaid
89d8864b6b
upgrade: tab installed_{as_dependency,on_request}
2017-01-18 11:23:22 +00:00
Mike McQuaid
ee43c09f7a
install: set installed_{as_dependency,on_request}.
2017-01-18 11:23:21 +00:00
Mike McQuaid
ffa5ebde53
Merge pull request #1863 from alyssais/uses_ignore_untapped
...
uses: properly handle untapped formulae in recursive dependency expansion (again!)
2017-01-17 19:58:52 +00:00
Mike McQuaid
1497dfaced
Merge pull request #1862 from alyssais/uses_include_optional
...
uses: fix recursive requirement resolution
2017-01-17 19:58:30 +00:00
Alyssa Ross
9475622c07
uses: restore formula-level exception handler
...
This is a temporary measure until:
- #1862 is merged
- I can a test on `brew uses` against every formula in the official
taps to verify that exceptions are no longer raised.
2017-01-16 23:28:26 +00:00
Alyssa Ross
0b216798bb
Revert "Revert "uses: properly handle untapped fo…
...
…rmulae in recursive dependency expansion""
This reverts commit dc9819b86c60b5c6fd10373ff318d8ef60f97d52.
2017-01-16 23:28:26 +00:00
Alyssa Ross
36c1c8e9b0
uses: fix recursive requirement resolution
...
Fixes #1848 by sharing recursive dependency resolution between
dependencies and requirements.
Coincidentally, this also fixes the errors introduced by #1784 that
necessitated it being reverted in #1797 .
2017-01-16 23:04:26 +00:00
Mike McQuaid
8f88b4c8e6
Merge pull request #1846 from MikeMcQuaid/fix-head-upgrade-man
...
Fix documentation for HEAD upgrades.
2017-01-15 20:42:23 +00:00
Mike McQuaid
7c15944991
Fix documentation for HEAD upgrades.
...
These can now be done with just `brew upgrade`, like other upgrades.
Fixes #1818 .
2017-01-15 02:25:51 -08:00
Andrew Janke
62d48b4f9d
brew deps --tree: fix gap in line between reqs and deps
2017-01-12 16:08:41 -05:00