Andrew R. McBurney
010207b982
Changed cache usage behavior.
...
1. Running `brew linkage some_package` does not set the cache.
2. Running `brew linkage --cached some_package` when `DatabaseCache.empty?` returns `true` should build the cache.
3. Running `brew linkage --cached some_package` when `DatabaseCache.empty?` returns `false` should use the cache.
2018-05-21 17:36:30 -04:00
Andrew R. McBurney
360a301503
Fix file path issue caused by dbm implicitly appending .db
to end of file path provided.
2018-05-21 12:27:53 -04:00
Andrew R. McBurney
e93e8f3266
Lazily load db of type DBM
instance variable for DatabaseCache
so the corresponding database file isn't created in the .use
block for a DatabaseCache
.
2018-05-18 16:37:01 -04:00
Andrew R. McBurney
cd6f89ca76
Made DatabaseCache.new
private, and changes instances in code that call it to use DatabaseCache.use
instead.
2018-05-18 10:06:30 -04:00
Andrew R. McBurney
ddd2ec05d8
Added static use
method for DatabaseCache
.
2018-05-17 16:56:59 -04:00
Andrew R. McBurney
4fb14d5c86
break if database_cache.empty?
2018-05-17 16:35:35 -04:00
Andrew R. McBurney
ba5692f7e5
Only update the cache for a formula if the cache is not empty?
.
2018-05-17 13:09:25 -04:00
Andrew R. McBurney
17f484b0ae
Set the return_value
from the initialize
block in the DatabaseCache
.
2018-05-15 13:15:30 -04:00
Andrew R. McBurney
b0dd3f4c99
Update the invalidated cache after doing a formula install.
2018-05-15 12:56:38 -04:00
Andrew R. McBurney
d3120c0206
Use cache if HOMEBREW_LINKAGE_CACHE
exists in formula_cellar_checks
and formula
. Make functions private in LinkageChecker
.
2018-05-06 15:55:33 -04:00
Mike McQuaid
494bb624cc
Merge remote-tracking branch 'origin/master' into cache-optimization
2018-05-03 09:27:09 +01:00
Mike McQuaid
d0cc8823b4
portable-ruby 2.3.3_2
...
Now with a working DBM on Linux.
2018-05-03 09:06:32 +01:00
dependabot[bot]
f0daf80248
Bump parallel_tests from 2.21.2 to 2.21.3 in /Library/Homebrew/test
...
Bumps [parallel_tests](https://github.com/grosser/parallel_tests ) from 2.21.2 to 2.21.3.
- [Release notes](https://github.com/grosser/parallel_tests/releases )
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.21.2...v2.21.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-05-02 19:14:46 +00:00
Mike McQuaid
452628a0fd
Merge pull request #4138 from Homebrew/dependabot/bundler/Library/Homebrew/test/rspec-retry-0.5.7
...
Bump rspec-retry from 0.5.6 to 0.5.7 in /Library/Homebrew/test
2018-05-02 20:13:35 +01:00
dependabot[bot]
547825d890
Bump simplecov from 0.15.1 to 0.16.1 in /Library/Homebrew/test
...
Bumps [simplecov](https://github.com/colszowka/simplecov ) from 0.15.1 to 0.16.1.
- [Release notes](https://github.com/colszowka/simplecov/releases )
- [Changelog](https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md )
- [Commits](https://github.com/colszowka/simplecov/compare/v0.15.1...v0.16.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-05-02 18:59:21 +00:00
dependabot[bot]
1eecfa8e6d
Bump rspec-retry from 0.5.6 to 0.5.7 in /Library/Homebrew/test
...
Bumps [rspec-retry](https://github.com/noredink/rspec-retry ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/noredink/rspec-retry/releases )
- [Changelog](https://github.com/NoRedInk/rspec-retry/blob/master/changelog.md )
- [Commits](https://github.com/noredink/rspec-retry/compare/v0.5.6...v0.5.7 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-05-02 18:59:15 +00:00
Mike McQuaid
555e2a2fc8
Merge remote-tracking branch 'origin/master' into cache-optimization
2018-05-02 09:46:58 +01:00
Mike McQuaid
ea9c9494a6
bump-formula-pr: fix tag/revision argument.
...
Can't do `@args[hash_type]` if `hash_type` is `nil`.
2018-05-02 09:42:55 +01:00
Mike McQuaid
b1a92ba14a
Merge pull request #3987 from GauthamGoli/bump-formula-pr-args
...
bump-formula-pr: Use Parser to parse args
2018-05-01 07:50:29 +01:00
FX Coudert
819b210263
Support GCC 8
2018-04-30 17:03:11 +02:00
Gautham Goli
07ee23d711
cli_parser: Refactor interface for depends, conflicts and add tests
2018-04-30 15:47:13 +05:30
Mike McQuaid
bb768c9e12
Merge pull request #4112 from MikeMcQuaid/portable-ruby-2.3.3_1
...
portable-ruby: increase to 2.3.1_1.
2018-04-30 09:28:50 +01:00
Mike McQuaid
f4e2432284
portable-ruby: increase to 2.3.1_1.
...
Install the latest Ruby from:
https://github.com/Homebrew/homebrew-portable-ruby/pull/55
This updates ncurses and openssl as well as more closely matching the
Apple's ruby build options.
Notably, this includes the DBM support needed for #3720 .
2018-04-30 08:43:43 +01:00
tjt263
b47b528859
Fix CaskAlreadyCreatedError message output
...
Minor edit.
2018-04-30 05:29:28 +08:00
Mike McQuaid
03dd26c5fa
Merge pull request #4113 from commitay/post_install
...
components_order_cop: add post_install
2018-04-29 08:51:28 +01:00
Mike McQuaid
ef32524fa3
Merge pull request #4118 from MikeMcQuaid/consistent-runtime-dependencies
...
formula: read runtime dependencies from more tabs.
2018-04-29 08:49:07 +01:00
Mike McQuaid
8f3ddf968f
linkage_checker: correctly handle multiple taps.
...
Fix upgrades of formulae with the same name in multiple taps.
As reported in:
https://github.com/Homebrew/brew/pull/3789#issuecomment-384890624
2018-04-28 17:24:48 +01:00
Mike McQuaid
191724ce83
formula: read runtime dependencies from more tabs.
...
The fixes the issue mentioned in:
https://github.com/Homebrew/brew/pull/4066#issuecomment-381308153
where `brew missing` was not reading from a tab of an outdated formula.
The `installed_prefix.directory?` check is unnecessary as the following
`opt_or_installed_prefix_keg` call is already checking that when it is
necessary. In this case it's not necessary anyway as `opt_prefix` is
preferred and makes more sense on outdated formulae.
2018-04-28 15:29:19 +01:00
commitay
44937fcf95
components_order_cop: add post_install
2018-04-27 10:26:58 +10:00
AndrewMcBurney
a756af3b32
Fixed style issue offenses from brew style
.
2018-04-25 10:27:03 -04:00
AndrewMcBurney
461d7d72de
Fixed failing tests in formula.rb
caused by merge.
2018-04-25 10:25:00 -04:00
AndrewMcBurney
27e5d1aee5
Merge remote-tracking branch 'origin/master' into cache-optimization
2018-04-25 10:04:36 -04:00
ilovezfs
ae6ae30857
Merge pull request #4110 from commitay/desc_cop
...
formula_desc_cop desclength: make non-strict
2018-04-25 06:01:42 -07:00
Mike McQuaid
8035afcc36
linkage_checker: fix generic pathname calls.
2018-04-25 12:08:33 +01:00
Mike McQuaid
3454d6a961
runtime_deps: improve documentation and consistency.
2018-04-25 11:44:29 +01:00
Mike McQuaid
598bbd4c72
Merge branch 'master' into undeclared_runtime_dependencies
2018-04-25 10:41:43 +01:00
Mike McQuaid
c167614797
linkage_checker: handle missing formulae.
2018-04-25 10:26:02 +01:00
Mike McQuaid
71f4f522d7
missing_formula: improve migration messaging.
...
Particularly in the cask case we can do a better job of communicating
how the new formula can be installed.
Fixes #4089 .
2018-04-25 10:16:22 +01:00
Mike McQuaid
9089ea4df3
Merge pull request #4109 from commitay/components_redundancy_cop
...
components_redundancy_cop: make non-strict
2018-04-25 08:32:35 +01:00
Mike McQuaid
56124f2918
Merge pull request #4108 from commitay/urls_cop_pypi
...
urls_cop pypiurls: make non-strict
2018-04-25 08:32:30 +01:00
Mike McQuaid
8f546918df
Merge pull request #4105 from commitay/components_order
...
components_order_cop: make non-strict
2018-04-25 08:28:03 +01:00
commitay
156451bd4b
formula_desc_cop desclength: make non-strict
2018-04-25 16:38:40 +10:00
commitay
1b7e6f7eb2
urls_cop pypiurls: make non-strict
2018-04-25 12:18:22 +10:00
commitay
9e24cb9c62
components_redundancy_cop: make non-strict
2018-04-25 07:58:01 +10:00
AndrewMcBurney
916247b920
Merge remote-tracking branch 'origin/master' into cache-optimization
2018-04-24 16:49:51 -04:00
Markus Reiter
5195e72242
Merge pull request #4064 from elyscape/tap-autoupdate
...
Support enabling auto-updates for non-GitHub taps
2018-04-24 20:54:08 +02:00
Eli Young
8734848829
Support enabling auto-updates for non-GitHub taps
2018-04-24 11:10:48 -07:00
commitay
1d3ed256a0
components_order_cop: make non-strict
2018-04-24 19:32:53 +10:00
Mike McQuaid
4a03145c1c
linkage: fix --test exit code.
...
Ensure that a non-zero exit code is set both for missing random dylibs
and random missing dependencies.
Additionally, while we are here, drastically trim down the public
interface for this class to the bare minimum and allow getting the
output from `display_test_output` as a variable.
Fixes issue mentioned by @ilovezfs in:
https://github.com/Homebrew/brew/pull/3940#issuecomment-383794520
2018-04-24 09:52:51 +01:00
Markus Reiter
33a9521576
Fix MissingFormula
namespacing.
2018-04-22 17:27:44 +02:00