Mike McQuaid
1330b74416
install: don't search when formula is unreadable.
...
These formulae are detected as missing but exist in an unreadable form.
Fixes #2485
2017-04-18 08:43:39 +01:00
Mike McQuaid
3b14aa2e90
install: use include instead of regex.
2017-04-17 14:56:04 +01:00
Zhiming Wang
363b26801a
install: do not search taps when a qualified formula is missing
2017-04-15 20:27:33 -04:00
Mike McQuaid
879b3360d3
Handle missing receipt on brew install
.
...
For example if this is for a really old keg, keg where a user has
manually removed stuff or used `brew diy`.
2017-04-02 17:02:56 +01:00
Mike McQuaid
566d3cb58b
Document all short flags.
2017-04-02 10:14:58 +01:00
Mike McQuaid
d82522060e
install: perform rename migrations when needed.
2017-03-31 10:01:46 +01:00
Mike McQuaid
c458ffbd24
install: immediately print FormulaUnavailableError.
2017-03-23 08:39:29 +00: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
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
EricFromCanada
aee23ccb03
Add more flags and descriptions to man pages.
2017-03-05 21:45:15 -05:00
Mike McQuaid
ee43c09f7a
install: set installed_{as_dependency,on_request}.
2017-01-18 11:23:21 +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
Mike McQuaid
79f9896d2f
bottles: --force-bottle feigns or_later.
...
When reproducing issues with software that hasn’t been bottled yet on
your version of macOS it can sometimes be helpful to use `or_later`
bottle functionality i.e. just use the bottle for the latest version of
macOS available. This maps well to the existing `--force-bottle`
argument so it will now act as if the latest bottle has a `or_later`
ending.
2017-01-02 16:05:14 +00:00
Uladzislau Shablinski
73a1daa669
cmd/install: allow to install any spec
...
* installing HEAD keg_only should be possible only if:
1.
- Old version installed differs from new one and optlinked
- `--force` flag is passed
- HEAD is seriously outdated or outdated with `--fetch-HEAD`
or 2.
- Old version installed differs from new one and not optlinked
or 3.
- This formula is not installed
* installing keg_only should be possible only if:
1.
- Old version installed differs from new one and optlinked
- `--force` flag is passed
or 2.
- Old version installed differs from new one and not optlinked
or 3.
- This formula is not installed
* installing HEAD should be possible only if:
1.
- Old HEAD is seriously outdated or outdated with `--fetch-HEAD`
or 2.
- HEAD is not installed
* installing stable or devel should be possible only if:
- Old version installed differs from new one
2016-12-03 04:42:04 +03:00
Mike McQuaid
2a53d14b51
Merge pull request #1217 from MatzFan/invalid_build_option_warnings
...
Invalid build option warnings - supersedes #1088
2016-11-13 10:50:51 +00:00
Bruce Steedman
8ebddca0fe
fix other 10 failing tests - doh
2016-11-12 12:31:35 +00:00
Mike McQuaid
6c9ca906af
install: only check fatal development tools checks.
2016-11-05 10:58:39 -04:00
ihatetoregister
12c252855a
Added a hint how to link a formula that is installed but not linked
2016-11-05 00:17:02 +01:00
Josh Hagins
c7e6613f7b
tap_constants: rename HOMEBREW_CASK_TAP_FORMULA_REGEX
...
New name is HOMEBREW_CASK_TAP_CASK_REGEX
2016-10-23 21:48:11 -04:00
Markus Reiter
198bf4d3bd
Convert puts_columns
to puts Formatter.columns
.
2016-10-15 17:13:38 +02:00
Markus Reiter
01d87f8107
Don’t use puts_columns
if empty?
or single item.
2016-10-15 17:13:38 +02:00
Markus Reiter
cafe149780
Merge pull request #1145 from reitermarkus/module-function
...
Use `module_function` for `Homebrew` module.
2016-10-04 10:31:49 +02:00
Bruce Steedman
62e14ea673
invalid build options - fixed conflicts; rename
2016-10-03 09:42:53 +01:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Mike McQuaid
c699597c4c
install: remove not updated warning.
...
This is no longer relevant after moving to taps/tags and if ever
re-added it should probably target homebrew/core.
Fixes #1194 .
2016-10-01 19:42:38 +01:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Markus Reiter
a5b11a6a5c
Fix Style/GuardClause.
2016-09-23 15:30:07 +02:00
Mike McQuaid
c45119de75
Merge pull request #971 from penman/follow_alias
...
Make `brew upgrade` and `brew outdated` follow alias changes
2016-09-19 15:22:24 +01:00
Alyssa Ross
c874b4e4c2
install: don't install alias if already installed
2016-09-18 19:58:11 +01:00
Mike McQuaid
3f9cce0a03
Use new "macOS" naming where appropriate.
...
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00
Mike McQuaid
5d761f651a
cmd/install: fix Rubocop warnings.
2016-09-11 17:58:59 +01:00
Mike McQuaid
f1cc1265af
Refactor MacOS check_development_tools usage.
...
Better use the abstraction layer so e.g. Linux could have similarly
fatal checks for these things.
2016-09-07 09:11:06 +01:00
Dominyk Tiller
921aa01576
install: die if Xcode/CLT not up-to-date on prereleases
2016-08-30 05:10:59 +01:00
Misty De Meo
fdf55e77e1
Improve formula not found handling ( #96 )
2016-08-10 10:37:35 +01:00
Xu Cheng
a8566c9848
various: eliminate the usage of any?
( #638 )
...
`any?` is not the opposite of `empty?`. Besides the case that
`[false, nil].any?` will return false, `any?`(O(n)) has much worse
performance than `empty?`(O(1)).
2016-08-05 22:01:32 +08:00
Mike McQuaid
164e46a729
Add missing development_tools requires.
2016-07-29 21:21:02 -06:00
Mike McQuaid
2c792076dc
cmd/install: port to generic OS. ( #458 )
2016-07-08 20:52:07 +01:00
Mike McQuaid
3a127e405e
development_tools: add installed? method. ( #455 )
2016-07-06 11:07:24 +01:00
Mike McQuaid
59074e91d6
diagnostic: more porting to generic OS. ( #449 )
2016-07-04 18:35:03 +01:00
Mike McQuaid
468ebc5ed5
install: undocument --force-bottle. ( #443 )
...
This is a developer-only option I created for testing purposes. It
should not be used by end-users.
2016-07-04 14:03:03 +01:00
Vlad Shablinsky
da06e813c2
cmd/install: use migration_needed?
...
Closes #411 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-06-29 21:04:28 +08:00
Zhiming Wang
bc1d5ae4d4
install: fix documentation of --keep-tmp option ( #258 )
...
Obvious copy/paste failure in acc9a7ca8554bc2413dee2d6d0f407b3a59c628c.
2016-05-19 08:43:42 +02:00
Jam
a558629654
gist-logs: add proper documentation, improve error handling ( #217 )
2016-05-09 04:39:22 +02:00
Andrew Janke
d887dd39ec
brew install: make -s apply only to given formula, not deps ( #205 )
2016-05-06 12:02:13 -07:00
Andrew Janke
acc9a7ca85
brew test, install, update-test: add --keep-tmp option
...
Also enables sandbox for --interactive and --debug use of install
and test, using automatic retention.
Closes #66 .
Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18 12:23:08 -04:00
Martin Afanasjew
94a627d7aa
install: handle FormulaClassUnavailableError
...
Don't search for alternatives if formula was found, but has issues, as
this will create confusing output, particularly for contributors working
on a formula file.
2016-04-17 21:16:01 +02:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Xu Cheng
28f3dae8cd
rename CoreFormulaRepository to CoreTap
...
Core tap will be separated from core code in the near future.
It makes sense to rename it to CoreTap.
2016-03-07 19:43:46 +08:00
Baptiste Fontaine
9f1442db14
doctor: move code away from cmd/
...
Closes Homebrew/homebrew#47665 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 14:33:06 +01:00