15907 Commits

Author SHA1 Message Date
Mike McQuaid
e9a66bff14 Regenerate runtime_dependencies after installation
This ensures the we’re calculating we’ve run `fix_dynamic_linkage` so
that their results are consistent with what we’re actually pouring.

Combined with the linkage cache (which will be enabled by default in
future) this has very little performance overhead for consistently
Correct tab results.

As a result, don’t bother looking at opportunistically linked
dependencies when creating a tab by default but only do so after
installation has completed.

Finally, only output the caveats and summary after all these
operations have completed.
2018-06-01 14:05:16 +01:00
Mike McQuaid
61617a257e linkage_checker: use default use_cache parameter for callers. 2018-06-01 14:05:16 +01:00
Mike McQuaid
1a2c2f2e1b linkage_cache: cache input data and not results.
Cache all the non-weak dynamic library links for a keg rather than the
result of running `brew linkage`. This means that we correctly handle
changes to e.g. what non-keg files are present on disk.
2018-06-01 14:05:16 +01:00
Mike McQuaid
b66aafc218 runtime_dependencies: include recommended deps.
These previously weren't being generated correctly for dependencies of
formulae that weren't installed.
2018-06-01 14:01:34 +01:00
Markus Reiter
e6648af656
Merge pull request #4251 from reitermarkus/must-succeed
Moving and copying must succeed.
2018-06-01 14:17:21 +02:00
Mike McQuaid
fb0f979279
Merge pull request #4204 from commitay/github-notabilty
audit: github notability
2018-06-01 08:39:26 +01:00
Markus Reiter
e07e036695 Moving and copying must succeed. 2018-06-01 03:31:12 +02:00
commitay
54b4f0c743 audit: github notability 2018-06-01 08:30:03 +10:00
Mike McQuaid
43bb5d28d7
Merge pull request #4247 from MikeMcQuaid/bump-formula-pr-bad-args
bump-formula-pr: improve bad argument handling.
2018-05-31 20:18:06 +01:00
Mike McQuaid
d7dbbf06bf
Merge pull request #4246 from MikeMcQuaid/bzr-downloads
download_strategy: fix bzr --HEAD downloads.
2018-05-31 20:17:55 +01:00
Mike McQuaid
054866653d
Merge pull request #4185 from sjackman/superenv-linux
Add superenv for Linux
2018-05-31 19:56:16 +01:00
Mike McQuaid
33cf882e34 bump-formula-pr: improve bad argument handling. 2018-05-31 19:53:12 +01:00
Mike McQuaid
0bb3d63c56 download_strategy: fix bzr --HEAD downloads.
`bzr` needs `BZR_HOME` set to something that's writable in the sandbox
to be able to write log files.
2018-05-31 19:43:01 +01:00
Mike McQuaid
efc02899c8
Merge pull request #4241 from lukertty/master
Fix Tty.width cannot get the real width in certain terminal like emacs shell
2018-05-31 14:46:52 +01:00
lukertty
68b2962e09
bin/brew: Remove 'LINES'
Signed-off-by: lukertty <lukertty@gmail.com>
2018-05-31 17:04:34 +08:00
Shaun Jackman
9f8f8ffb89 superenv: Move Linux-specific bits to extend/os/ 2018-05-30 14:00:26 -07:00
Shaun Jackman
9e57be73ec shims/super/cc: Add support for Linux 2018-05-30 12:14:31 -07:00
Mike McQuaid
0f65758f85
Merge pull request #4240 from Homebrew/dependabot/bundler/docs/github-pages-186
Bump github-pages from 185 to 186 in /docs
2018-05-30 08:51:37 +01:00
lukertty
f308aa4800
Tty.width: use tput cols when stty size returns 0;
bin/brew: add 'COLUMNS' and 'LINES' to env variables

Signed-off-by: lukertty <lukertty@gmail.com>
2018-05-30 12:29:24 +08:00
commitay
ca8bfef553
Merge pull request #4233 from commitay/doc-go_resource
formula-cookbook: remove gdm
2018-05-30 13:24:15 +10:00
dependabot[bot]
c40f7b80cd
Bump github-pages from 185 to 186 in /docs
Bumps [github-pages](https://github.com/github/pages-gem) from 185 to 186.
- [Release notes](https://github.com/github/pages-gem/releases)
- [Commits](https://github.com/github/pages-gem/compare/v185...v186)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-05-30 01:30:16 +00:00
Gautham Goli
fba52e2f74 cli_parser: Store parsed args in Homebrew.args and access args everywhere else 2018-05-30 00:05:39 +05:30
Mike McQuaid
05ff35b4ab
Merge pull request #4238 from MikeMcQuaid/list-fix-ls-options
cmd/list: add common `ls` options.
2018-05-29 19:24:31 +01:00
Mike McQuaid
f8f77ea52d cmd/list: add common ls options.
We need to manually specify these now so let's add a few that we'd
either previously documented or we've caught being used in the wild and
adjust the documentation accordingly.
2018-05-29 18:45:46 +01:00
Mike McQuaid
5f37f080b2
Merge pull request #4237 from anjakefala/anjakefala-python-docs
virtualenv_create(libexec, "python") results in error upon install
2018-05-29 18:42:18 +01:00
Anja Kefala
6983a95246
virtualenv_create(libexec, "python") results in error upon install
When the line was switched to the more explicit

`virtualenv_create(libexec, "python3")` the package installed with any issues. 

Arguably, I am not as comfortable as I would like with Homebrew's relationship with Python, so maybe this reveals a larger underlying issue or there was a mistake within the original Formula.

The formula is hosted [here](https://github.com/saulpw/homebrew-vd). 

```
Last 15 lines from /Users/anja/Library/Logs/Homebrew/visidata/14.pip:
  Removing source in /private/tmp/pip-req-build-CH6VRn
visidata requires Python '>=3.4' but the running Python is 2.7.10
Exception information:
Traceback (most recent call last):
  File "/usr/local/Cellar/visidata/1.2/libexec/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/visidata/1.2/libexec/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 291, in run
    resolver.resolve(requirement_set)
  File "/usr/local/Cellar/visidata/1.2/libexec/lib/python2.7/site-packages/pip/_internal/resolve.py", line 103, in resolve
    self._resolve_one(requirement_set, req)
  File "/usr/local/Cellar/visidata/1.2/libexec/lib/python2.7/site-packages/pip/_internal/resolve.py", line 262, in _resolve_one
    check_dist_requires_python(dist)
  File "/usr/local/Cellar/visidata/1.2/libexec/lib/python2.7/site-packages/pip/_internal/utils/packaging.py", line 55, in check_dist_requires_python
    '.'.join(map(str, sys.version_info[:3])),)
UnsupportedPythonVersion: visidata requires Python '>=3.4' but the running Python is 2.7.10
```
2018-05-29 13:22:16 -04:00
Vítor Galvão
81d467abba with-languages.rb: remove trailing whitespace 2018-05-29 11:42:05 +01:00
Vítor Galvão
dc1edf6bfc cask --language: have specific match always trump general 2018-05-29 11:42:05 +01:00
Mike McQuaid
315ccf604f
Merge pull request #4230 from tschoonj/gtk-mac-integration-whitelist
Add gtk-mac-integration to gnome_devel_whitelist
2018-05-29 11:17:56 +01:00
Tom Schoonjans
ecbd9b9a26 Add gtk-mac-integration to gnome_devel_whitelist 2018-05-29 10:38:38 +01:00
Markus Reiter
2791457f35
Merge pull request #4229 from reitermarkus/fix-cask-tap-not-available
Fix tap unavailable error for migrated Cask taps.
2018-05-29 11:15:04 +02:00
Markus Reiter
0cb960951f Fix tap unavailable error for migrated Cask taps. 2018-05-29 10:57:33 +02:00
Mike McQuaid
ae52b457d0
Merge pull request #4225 from maxim-belkin/fix-ignore
Fix ignore file
2018-05-29 09:54:11 +01:00
commitay
03f496b92e formula-cookbook: remove gdm 2018-05-29 17:28:23 +10:00
Maxim Belkin
be1ef83427
Fix ignore file 2018-05-28 15:11:33 -05:00
Mike McQuaid
67db701ae5
Merge pull request #4067 from maxim-belkin/fix-multiple
list.rb: use CLI::Parser and improve handling of flags
2018-05-28 20:52:03 +01:00
Mike McQuaid
517d147e33
Merge pull request #4219 from alyssais/version_comparison
Fix comparison with Version::NULL on RHS
2018-05-28 20:35:49 +01:00
Mike McQuaid
6cb86da614
Merge pull request #4217 from apjanke/missing-pwd-concise-error
brew: Conciser error when run from nonexistent directory
2018-05-28 20:32:05 +01:00
Mike McQuaid
513c179e60
Merge pull request #4213 from reitermarkus/refactoring
Refactoring
2018-05-28 20:26:09 +01:00
Mike McQuaid
a276a48253
Merge pull request #4222 from reitermarkus/silence-parser-compatibility
Silence `Parser` compatibility warning.
2018-05-28 20:25:43 +01:00
Markus Reiter
e954bedc5f
Merge pull request #4221 from reitermarkus/brew-cask-list
Fall back to `CaskLoader.load` to get a better error message.
2018-05-26 18:27:01 +02:00
Markus Reiter
a0ca601a1a Silence Parser compatibility warning. 2018-05-26 16:24:48 +02:00
Markus Reiter
c89ae8c5ab Fall back to CaskLoader.load to get a better error message. 2018-05-26 16:05:51 +02:00
Alyssa Ross
472d1a22c5
Fix comparison with Version::NULL on RHS
This was accounted for in Version::NULL.<=>, but not in Version#<=>,
so these could only be compared if Version::NULL was the left hand
side.

The check had to go above the check that `other` is a version because
`Version::NULL`'s anonymous class does not inherit from `Version`.
(The type check feels like it's probably a smell, but out of scope).
2018-05-26 14:45:53 +02:00
Andrew Janke
00e21bfdf7 brew: Conciser error when run from nonexistent directory 2018-05-26 07:40:31 -04:00
Mike McQuaid
963adfafc3
Merge pull request #4214 from reitermarkus/fix-rspec-deprecations
Fix `rspec` deprecations.
2018-05-26 08:19:25 +01:00
Markus Reiter
579a30c7bf Fix rspec deprecations. 2018-05-25 23:19:13 +02:00
Markus Reiter
df2a40d207 Use remote instead of path.git_origin. 2018-05-25 22:54:34 +02:00
Markus Reiter
d1fb1d2abc Use simpler check. 2018-05-25 22:47:41 +02:00
Markus Reiter
50a43cf678 Reset repo_var in clear_cache. 2018-05-25 22:47:31 +02:00