Alyssa Ross
e5d7e13c63
keg: installed dependencies of unknown formulae
...
Previously, trying to resolve the dependencies of a keg would raise an
exception if the formulae for any of the dependencies could not be found
(e.g. if it had been moved to another tap).
This commit updates the dependency finding logic to catch these
exceptions, and fall back to comparing names and taps of formulae, which
should give the correct behaviour.
Fixes #1586 .
2016-12-27 18:03:05 +00:00
Alyssa Ross
0a20edf945
tests: don't run LinkTests twice
...
see #1526
2016-12-27 17:34:46 +00:00
Mike McQuaid
8f85eb64c4
audit: fix 32-bit check.
2016-12-20 14:26:53 +00:00
Mike McQuaid
ef6b55125c
Merge pull request #1695 from MikeMcQuaid/audit-revision-map-nil
...
audit: handle a nil revision map.
2016-12-20 10:55:41 +00:00
Mike McQuaid
1d2390b2de
Merge pull request #1698 from MikeMcQuaid/deprecate-32-bit
...
Deprecate 32-bit options.
2016-12-20 10:54:54 +00:00
Mike McQuaid
f4291caaa4
Merge pull request #1710 from MikeMcQuaid/xcode-no-prerelease-warnings
...
Remove Xcode prerelease warnings.
2016-12-20 10:44:49 +00:00
Mike McQuaid
f98304026b
Deprecate 32-bit options.
...
These were formerly supported but as it has been a very long time since
32-bit software was necessary on macOS these have been deprecated with
a `brew audit` warning and a future `odeprecated`.
2016-12-20 10:22:30 +00:00
Mike McQuaid
584fd64a9e
Merge pull request #1684 from MikeMcQuaid/update-reset-command
...
update-reset: add new command.
2016-12-20 10:17:43 +00:00
Mike McQuaid
e3844719bc
Merge pull request #1680 from MikeMcQuaid/post-install-sandbox-prefix
...
postinstall: don't allow writes to prefix itself.
2016-12-20 09:57:37 +00:00
Mike McQuaid
26af62ed68
Merge pull request #1678 from MikeMcQuaid/loosen-superenv-cellar-regex
...
super/cc: loosen cellar formula regex.
2016-12-20 09:57:19 +00:00
Mike McQuaid
e950aa11d1
Remove Xcode prerelease warnings.
...
At this point we probably do want to know about issues that crop up in
betas so we can fix them before the new version of Xcode is released.
Additionally, this doesn't really work well any more with our new
tag-based workflow as it means we need to cut a new tag immediately
after a new Xcode is released.
2016-12-19 18:01:36 +00:00
Mike McQuaid
0027ded5aa
Merge pull request #1674 from MikeMcQuaid/audit-os-mac-linux
...
audit: don't allow use of OS.mac?/OS.linux?.
2016-12-18 15:56:55 -08:00
Mike McQuaid
41a248786f
audit: handle a nil revision map.
2016-12-18 15:46:02 -08:00
Mike McQuaid
477faf073b
Never trigger too old CLT check on <10.7.
...
While we fake a CLT for these versions they never shipped with the CLT
so cannot update it.
2016-12-18 15:31:17 -08:00
Mike McQuaid
339ff9400f
audit: don't allow use of OS.mac?/OS.linux?.
...
Forbid their use in Homebrew/core which only supports macOS. This may
be added to more/all official taps in future.
2016-12-18 15:30:06 -08:00
Mike McQuaid
d21f6954b6
update-reset: add new command.
...
Add new `brew update-reset` command to provide a helpful troubleshooting
fallback to fetch and reset all repositories. This could have lived in
`brew update` but it makes sense to avoid the complexity of sharing
logic between these scripts and keeping this one simpler.
2016-12-18 15:25:18 -08:00
Mike McQuaid
61e370fb7a
create: handle Version::NULL correctly.
...
Fixes #1688 .
2016-12-18 13:32:29 -08:00
Mike McQuaid
482568579b
Merge pull request #1675 from MikeMcQuaid/diagnostic-multiple-cellars
...
diagnostic: check for multiple Cellars.
2016-12-18 11:18:13 -08:00
Mike McQuaid
e95c843c2e
Merge pull request #1673 from MikeMcQuaid/audit-fails-with-llvm
...
audit: flag use of "fails_with :llvm".
2016-12-18 11:17:44 -08:00
Mike McQuaid
b87d27f939
Merge pull request #1679 from MikeMcQuaid/no-prune-top-level-dirs
...
prune: don't remove top-level directories.
2016-12-18 11:16:27 -08:00
Mike McQuaid
5aeb7125c4
Merge pull request #1685 from MikeMcQuaid/utils-path-string
...
which_all: don't assume path is a string.
2016-12-18 11:16:02 -08:00
Markus Reiter
60d63965f2
Merge pull request #1689 from reitermarkus/failed-install-error-message
...
Fix error message when cask fails to install.
2016-12-17 17:17:25 +01:00
Markus Reiter
8b04545b3f
Merge pull request #1667 from jmorten/bugfix/typo
...
fix typo
2016-12-16 22:45:04 +01:00
Markus Reiter
3088faaf9c
Fix error message when cask fails to install.
2016-12-16 18:22:04 +01:00
Mike McQuaid
ab060c9d52
super/cc: loosen cellar formula regex.
...
Match HOMEBREW_TAP_FORMULA_REGEX to avoid skipping valid cellar regexes.
2016-12-15 15:15:13 -08:00
Mike McQuaid
9cd5a21b47
Merge pull request #1669 from vladshablinsky/fix_method_deprecated
...
formulary: call tap not formula
2016-12-13 22:41:44 -08:00
Uladzislau Shablinski
478e4f112c
formulary: call tap not formula
...
Fixes #1668
2016-12-14 05:07:54 +03:00
Joshua Morten
6eb7aa6d4d
fix typo
2016-12-13 15:40:31 -08:00
ilovezfs
862c3ba4a2
Revert "formula: runtime deps of build deps aren't runtime"
2016-12-13 11:15:00 -08:00
Mike McQuaid
cf1fa0c5bc
audit: flag use of "fails_with :llvm".
...
Also, add TODOs for deprecating this properly at a later point.
2016-12-13 02:10:11 +00:00
Mike McQuaid
2e15f713a0
prune: don't remove top-level directories.
...
Even if they're empty we want to keep these top-level directories around
as the installer has nicely created them with the correct permissions
and this avoids potentially having to use `sudo` to recreate them.
2016-12-13 01:05:11 +00:00
Mike McQuaid
950512ad34
diagnostic: check for multiple Cellars.
...
And tell people to delete the HOMEBREW_REPOSITORY one. The
HOMEBREW_PREFIX one is preferable for bottling.
2016-12-13 00:19:46 +00:00
Mike McQuaid
2b547583a3
postinstall: don't allow writes to prefix itself.
...
Only the top-level directories inside it. We don't want formulae writing
random junk in e.g. `/usr/local` even in `postinstall`.
2016-12-13 00:13:20 +00:00
dersvenhesse
b3174aa3e2
XCode 8.2 is stable
2016-12-12 23:29:35 +01:00
Mike McQuaid
666463ca2b
Merge pull request #1592 from alyssais/runtime_dependencies
...
formula: runtime deps of build deps aren't runtime
2016-12-12 13:28:56 +00:00
Mike McQuaid
c317c3c31f
Merge pull request #1616 from zachwhaley/zsh_functions_caveats
...
caveats: Differentiate zsh completion files and function files
2016-12-12 13:27:40 +00:00
Mike McQuaid
ebe45490b6
analytics: don't raise if tap doesn't exist.
2016-12-11 13:43:32 +00:00
Mike McQuaid
ef8afdf707
Merge pull request #1649 from MikeMcQuaid/prune-opt
...
keg: also prune opt.
2016-12-11 12:18:25 +00:00
Mike McQuaid
d085a47124
Merge pull request #1646 from MikeMcQuaid/report-deprecations-to-tap
...
Tell people to report URL/tap deprecations to the tap.
2016-12-11 12:17:49 +00:00
Mike McQuaid
11483d55c9
keg: also prune opt.
...
If there's dead symlinks in there they should be removed.
2016-12-11 11:55:07 +00:00
Uladzislau Shablinski
45ef7ea0b0
Merge pull request #1343 from vladshablinsky/explicit-specs
...
Allow to install any spec
2016-12-11 14:26:46 +03:00
Mike McQuaid
bf9da2532e
formula_installer: remove dependency_installer.
...
This is no longer needed as the reason it was added (argument
sanitisation) is now done properly.
Also, remove `skip_deps_check?` in favour of `ignore_deps?` as it too is
no longer needed.
2016-12-10 19:21:17 +00:00
Mike McQuaid
7258557aea
Merge pull request #1647 from MikeMcQuaid/fix-dependency-option-handling
...
Fix dependency option handling.
2016-12-10 18:20:59 +00:00
Mike McQuaid
51c31f4d51
Merge pull request #1642 from MikeMcQuaid/always-output-options
...
reinstall/upgrade/install: always output options.
2016-12-10 18:12:36 +00:00
Mike McQuaid
f7f15673a8
Fix dependency option handling.
...
- formula_installer: only recompute dependencies when necessary i.e.
when a bottle pour fails.
- formula_installer: re-add accidentally remove dependency options
- dependency: missing options are only those that actually exist on a
formula
2016-12-10 17:58:41 +00:00
Mike McQuaid
a566540c46
Merge pull request #1641 from MikeMcQuaid/formulary-remap-options
...
formulary: remap deprecated options from keg.
2016-12-10 13:50:31 +00:00
Mike McQuaid
384174e542
which_all: don't assume path is a string.
...
Fixes #1635 .
2016-12-10 13:19:01 +00:00
Mike McQuaid
e347f7ade3
reinstall/upgrade/install: always output options.
...
This is both easier for debugging and to communicate with users what is
being done.
2016-12-10 13:07:03 +00:00
Mike McQuaid
598c5e36f9
Tell people to report URL/tap deprecations to the tap.
...
Rather than Homebrew/brew or Homebrew/homebrew-core.
2016-12-10 13:04:14 +00:00
Mike McQuaid
8e2f0ccdc3
formulary: remap deprecated options from keg.
...
When reading a building a formula from a keg (rather than e.g. from
name) then the deprecation options were not remapped correctly as they
are only done in `Tab.for_formula` and not `Tab.for_keg`. Ensure that
after we’ve created the formula that the `used_options` are remapped
correctly.
2016-12-09 17:59:08 +00:00