Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
EricFromCanada
0362e66a26
doctor: use minimum Git version set in brew.sh
2018-10-28 20:13:19 -04:00
EricFromCanada
7c9bea2703
system_config: skip HOMEBREW_GIT as its final path is shown further down
2018-10-26 23:47:59 -04:00
Mike McQuaid
78ddc34847
config: hide optional system packages.
...
Java, XQuartz and the CLT separate header package aren't required for
everyone's Homebrew usage or a default macOS development install.
As a result, only show then in `brew config` when they are actually
installed.
2018-09-30 10:50:37 +01:00
Mike McQuaid
5ac056fa52
system_config: don't print default HOMEBREW_GIT value.
...
This is `git` for most people.
2018-09-23 19:43:30 +01:00
commitay
2cb253520e
system_config: add HOMEBREW_MACOS_VERSION_NUMERIC
to boring_keys
2018-09-23 12:59:03 +10:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Shaun Jackman
3c4f9c746e
Elide prefix "/usr/local" in bottle block
...
brew test-bot --ci-upload is run on a Linux machine.
The macOS bottles have a prefix of "/usr/local".
The default prefix on Linux is /home/linuxbrew/.linuxbrew.
Elide prefix "/usr/local" in the bottle block, even it does not match
the default prefix. Ditto for cellar.
2018-09-11 14:21:33 -07:00
Shaun Jackman
f6093961ef
Add Homebrew::DEFAULT_PREFIX for Linux
...
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
Markus Reiter
32ad22395b
Remove some #popen_read
s.
2018-09-04 05:16:59 +02:00
Mike McQuaid
f46e4596c0
Cleanup HOMEBREW_TEMP handling
...
- Ensure that `HOMEBREW_TEMP` is only displayed in `brew config` when
it's non-default.
- Attempt to create a missing `HOMEBREW_TEMP` directory rather than
failing to `realpath`. Note this will still fail on permissions errors
which is to be expected.
2018-07-03 15:41:33 +01:00
Mike McQuaid
facd76bc51
portable-ruby: respect HOMEBREW_BOTTLE_DOMAIN variable.
...
This was requested in:
https://discourse.brew.sh/t/adding-additional-download-sources-to-homebrew/2446
With this change you can use e.g. Artifactory for Homebrew's portable
ruby.
2018-06-29 19:51:18 +01:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
9b1bd5f45a
system_config: don’t output std/superenv vars.
2018-04-02 09:40:39 +01:00
Mike McQuaid
7095738d1d
Remove config/doctor checks we no longer need
...
A bunch of these were needed before superenv, environment filtering or
on now long-unsupported versions of macOS.
2018-04-02 09:40:39 +01:00
Mike McQuaid
11f315834e
system_config: never display default_hash keys.
...
Otherwise you can end up with duplicate outputs.
2018-03-25 09:43:39 +01:00
Mike McQuaid
fce9d520e7
system_config: don't output HOMEBREW_RUBY_WARNINGS
...
It's set by default and the output is pretty obvious if changed.
2018-03-22 22:04:31 +00:00
Mike McQuaid
fc7fb60b72
system_config: use some puts for clang.
2018-03-22 08:26:26 +00:00
Buck Evan
8b27b84b4b
fix clang build version on Ubuntu Artful
...
Ported from https://github.com/Linuxbrew/brew/pull/621
2018-03-21 11:53:32 -07:00
Maxim Belkin
a1bf2c072c
Use \d instead of 0-9 in regex
2018-02-22 19:25:56 +00:00
Maxim Belkin
5536f49305
Cross-platform java detection
2018-02-22 18:32:21 +00:00
Mike McQuaid
b26a0d4a91
Enable environment filtering for developers.
...
If folks have set `HOMEBREW_DEVELOPER` or run a `dev-cmd` then enable
environment filtering by default for them.
2017-11-27 10:15:26 +00:00
Mike McQuaid
ccf933f31c
Merge pull request #3435 from MikeMcQuaid/auto-update-checked
...
Use HOMEBREW_AUTO_UPDATE_CHECKED variable.
2017-11-07 08:26:19 +00:00
Mike McQuaid
5f301755c0
Use HOMEBREW_AUTO_UPDATE_CHECKED variable.
...
Rather than reusing `HOMEBREW_NO_AUTO_UPDATE` to indicate that we've
already made a check. This allows `HOMEBREW_NO_AUTO_UPDATE` to be
displayed properly by `brew config`.
2017-11-07 08:01:51 +00:00
Mike McQuaid
9358f678a3
Clear/mask passwords as well as tokens.
2017-11-07 07:54:34 +00:00
Mike McQuaid
4892465fc4
system_config: output most HOMEBREW_* variables.
...
Exclude the boring ones and exclude some that are already printed that
are just using their default values. HOMEBREW_PREFIX is the only one
where we’re always interested in the output to quickly communicate it.
2017-11-05 14:45:36 +00:00
Mike McQuaid
1b69848119
system_config: output curl path and version.
2017-11-05 14:45:36 +00:00
Mike McQuaid
3448335a14
system_config: get perl/ruby from HOMEBREW_PATH.
...
This is the actual user path when env filtering is enabled.
2017-10-28 20:38:00 +01:00
Shaun Jackman
2f6b8dcf68
describe_java: Suppress stderr
...
Suppress the error message:
Unable to find any JVMs matching version "(null)".
2017-09-20 13:25:37 -07:00
Mike McQuaid
acb418c488
system_config: look for python formula binary.
...
Now that Python has been renamed it's important that we still output
which Python they are using for debugging purposes e.g.
```
Python: /usr/local/opt/python/libexec/bin/python => /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
```
2017-07-21 17:31:35 +01:00
Mike McQuaid
021cef4b2b
Autocorrect Rubocop Style/SpecialGlobalVars.
2017-06-12 09:11:42 +01:00
Uladzislau Shablinski
7a361553f8
system_config: check if devtools installed
...
Fixes #2192
2017-02-26 01:24:53 +03:00
Mike McQuaid
e50102d91e
ENV: deprecate old methods.
...
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
2016-12-30 20:20:13 +00:00
Misty De Meo
d8c19fd7d5
SystemConfig: fix version reporting
2016-11-10 15:09:36 -08:00
Markus Reiter
e851c9bf6c
Style/Alias: Prefer alias
.
2016-09-23 18:19:53 +02: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
6693915399
rubocop --auto-correct all remaining files.
...
But remove some manual `.freeze`s on constants that shouldn't be
constants.
2016-09-17 16:14:13 +01:00
Xu Cheng
fe3915237e
config: show homebrew ruby for all system ( #492 )
2016-07-11 22:32:46 +08:00
Martin Afanasjew
77dd9d56ff
Use GitRepositoryExtension for HOMEBREW_REPOSITORY
2016-07-07 01:46:58 +02:00
Martin Afanasjew
d7b6e9bba9
config: expose used Git version and path
...
Due to our SCM wrapper in `Library/ENV/scm/git`, lookup is a bit more
complicated than just picking the first match in `PATH`. Make debugging
easier by printing the version and path of the Git actually used by us.
2016-06-19 22:12:34 +02:00
Mike McQuaid
375efe0945
Remove LLVM-GCC support. ( #252 )
...
At this point it's never a good compiler to use so let's just remove it.
2016-05-22 09:40:08 +01:00
Mike McQuaid
9e7b8c61a9
Make config command cross-platform.
...
Closes #168 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-05-08 16:51:22 +01:00