180 Commits

Author SHA1 Message Date
Francois-Xavier Coudert
961f4cc14f brew: re-exec under native arch if requested 2020-12-04 18:03:24 +01:00
Mike McQuaid
844efe591f
Merge pull request #9213 from maxim-belkin/handle-curl-git-better
Properly handle outdated cURL
2020-11-26 09:09:20 +00:00
Mike McQuaid
6f4d2a9dcd
brew.sh: remove trailing period. 2020-11-26 08:35:42 +00:00
Maxim Belkin
2aecfe60fc Update logic that handles HOMEBREW_GIT_PATH. 2020-11-25 16:08:57 -06:00
Maxim Belkin
2b6c1e220d
brew.sh: don't mention HOMEBREW_DEVELOPER 2020-11-24 20:51:49 -06:00
Eric Knibbe
45ed865008
bump-cask-pr: run auto-update beforehand 2020-11-22 20:12:21 -05:00
Michka Popoff
4e1e280ace brew.sh: remove HOMEBREW_DEVELOPER condition
This env variable is filtered out on test-bot.
2020-11-22 00:06:32 +01:00
Michka Popoff
75e55def94 brew.sh: add missing quotes 2020-11-21 22:48:20 +01:00
Michka Popoff
3f84af72b1
Merge pull request #9230 from iMichka/curl
brew: lower curl minimum version for debian 7 CI
2020-11-21 16:20:05 +01:00
Michka Popoff
dbb81dbe7e brew: lower curl minimum version for debian 7 CI
We do not use curl that much there, setting the HOMEBREW_ON_DEBIAN7 flag
allows to lower the version, so that we can successfully pass the curl
version check below.
2020-11-20 21:19:37 +01:00
Mike McQuaid
2832048692
brew.sh: cleanup indentation. 2020-11-20 12:34:21 +00:00
metacollin
e5f7285260 Removed plural alias 2020-11-19 20:24:07 -07:00
Maxim Belkin
22bc5a94e7
Properly handle outdated cURL
`HOMEBREW_CURL_PATH` has an effect only when `HOMEBREW_DEVELOPER` is set. However, the part of `brew.sh` that prints a message about outdated cURL disregards the value of `HOMEBREW_DEVELOPER`, which leads to a misleadnig message telling the user that `HOMEBREW_CURL_PATH` is outdated even though another cURL was used/tested.

This PR fixes it and instructs Homebrew to:

1. Display a warning message when system cURL is outdated and either `HOMEBREW_CURL_PATH` **or `HOMEBREW_DEVELOPER`** are not set. New `HOMEBREW_CURL_WARNING` variable is set to display the above warning only once (useful when `brew` calls itself internally).
2. Display `Installing Homebrew cURL` before auto-installing cURL in `update.sh` (due to `HOMEBREW_FORCE_BREWED_CURL`) and stop/exit if this step fails.
3. Display `Installing Homebrew Git` before auto-installing Git in `update.sh` (due to `HOMEBREW_FORCE_BREWED_GIT`) and stop/exit if this step fails.
2020-11-19 10:14:10 -06:00
metacollin
b04a5ffa0b Turbocharged formula name completion 2020-11-13 05:36:53 -07:00
Mike McQuaid
7bbc159450
brew.sh: reorder to speedup shellenv.
Reorder and restructure this file to make it as fast as possible for
e.g. `brew --prefix`. Once we have that, also give `brew shellenv`
short-circuit command execution to make it as fast as possible.

On my machine (with a warm cache) this gets:

```
brew shellenv  0.01s user 0.03s system 100% cpu 0.038 total
```

Compared to:

```
brew shellenv  0.09s user 0.19s system 100% cpu 0.277 total
```

before this commit.
2020-10-12 09:23:49 +01:00
Maxim Belkin
b1cc9bdee7
brew.sh: update implied HOMEBREW_VERSION
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-09-09 12:05:40 -07:00
Maxim Belkin
56901775bf brew.sh: use HOMEBREW_GIT instead of git 2020-09-09 12:22:45 -05:00
Dawid Dziurla
1863b85dbe
brew.sh: fix indentation
Co-authored-by: Markus Reiter <me@reitermark.us>
2020-08-25 12:15:08 +02:00
Dawid Dziurla
d9e8afe5a1
brew.sh: colorize output on GitHub Actions 2020-08-25 12:15:08 +02:00
Dawid Dziurla
102afda9df
Remove usages of HOMEBREW_INSTALL_BUNDLER_GEMS_FIRST 2020-08-24 13:35:49 +02:00
Maxim Belkin
b8d21dcf60 brew.sh: handle Linux systems with no 'locale' 2020-08-17 15:24:18 +00:00
Maxim Belkin
d33691dcdb
brew.sh: don't suppress stderr for 'locale charmap'
Co-authored-by: Shaun Jackman <sjackman@gmail.com>
2020-08-13 17:08:06 -05:00
Maxim Belkin
bab43d4cc8
brew.sh: use 'command -v' instead of 'which'
Co-authored-by: Shaun Jackman <sjackman@gmail.com>
2020-08-13 06:59:39 -05:00
Maxim Belkin
ecbe2213e4 brew.sh: handle systems with no 'locale'
such as Alpine Linux

Closes Linuxbrew/docker#83
2020-08-12 21:08:14 +00:00
rmnull
0c2d7659cf
patchelf.rb reading for everyone :) 2020-08-08 06:32:34 +05:30
William Ma
53ff55bc8e caskroom: Add --caskroom to brew.sh 2020-08-03 18:16:26 -04:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
Maxim Belkin
06f078fad2
Merge pull request #8072 from maxim-belkin/utf8-fix
brew.sh: fixes for UTF-8
2020-07-28 09:01:56 -05:00
Mike McQuaid
0be15fc4b7
Run brew update before brew bundle.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.

Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed.
2020-07-28 11:49:52 +01:00
Maxim Belkin
219d1322be brew.sh: fixes for UTF-8 2020-07-27 22:16:30 +00:00
Shaun Jackman
ad735d6ed2 Change the default locale to C.UTF-8 on Linux
Change the default locale from en_US.UTF-8 to C.UTF-8 on Linux.
The former locale is not included by default in common Docker images,
whereas the latter locale is included by default.
The default locale remains en_US.UTF-8 on macOS.
2020-07-20 15:55:22 -07:00
Bo Anderson
681dafd028 Adjust container checks for GitHub Actions changes 2020-07-15 19:12:33 +01:00
rmnull
cf6eef098b
enable HOMEBREW_PATCHELF_RB on (HOMEBREW_DEVELOPER=1 && HOMEBREW_NO_PATCHELF_RB.empty?) 2020-07-11 06:20:25 +05:30
Shaun Jackman
9a83e52ae4 HOMEBREW_PROCESSOR is arm64 on Apple Silicon
Utils::Bottles::tag: ARM tag is arm64_big_sur
2020-07-10 10:55:56 -07:00
Mike McQuaid
15a2abd9df
style: re-enable shellcheck.
Ensure that `shellcheck` is run by `brew style` again and fix the
various failures.
2020-07-07 11:53:55 +01:00
Caleb Xu
a53c92bd7f Cache commands list for faster shell completions 2020-06-18 11:06:31 -04:00
Misty De Meo
0c1cf592b7
Bump minimum OS to Yosemite 2020-06-10 13:08:01 -07:00
Maxim Belkin
5be4682ecb
brew.sh: add an empty line for code readability
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-05-11 07:30:25 -05:00
Maxim Belkin
6455264716
brew.sh: stop if HOMEBREW_GIT_PATH is too old 2020-05-11 07:21:47 -05:00
Maxim Belkin
6ba7ace66a
brew.sh: stop if HOMEBREW_CURL_PATH is too old 2020-05-11 07:17:26 -05:00
Maxim Belkin
6ff307c456
brew.sh: remove unnecessary empty line
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-05-11 05:18:04 -05:00
Maxim Belkin
fe45f68000
brew.sh: check versions of proper cURL and Git
User may specify which cURL and Git to use via
HOMEBREW_CURL_PATH and HOMEBREW_GIT_PATH.
So, let's use these to determine whether we need to use
their vendored alternatives.
2020-05-04 03:16:51 -05:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig. 2020-04-07 09:58:26 +01:00
Dawid Dziurla
90b410c2a9
brew.sh: obey HOMEBREW_COLOR 2020-03-31 00:17:42 +02:00
Mike McQuaid
cfe2f5bfda
Merge remote-tracking branch 'origin/master' into add_change_origin_command 2019-12-30 10:39:28 +00:00
Mike McQuaid
355626ac51
Tweak/fix Git remote configuration behaviour. 2019-12-30 10:38:47 +00:00
hyuraku
7501f3d402 check before examine_git_origin 2019-12-19 00:05:20 +09:00
Issy Long
aedfbd4550
Add garden to root execution allow list for Concourse CI containers
- Concourse CI uses `garden` under the hood for its containers.
- Running the Homebrew Docker container for a Concourse job was failing
  with the "can't run as root" error. In the same way as
  bc320ad2291f5ec652d8f4bcf3f7b7ff3c9af3bd, this adds `garden` as one of
  the allowed providers.
2019-12-17 10:31:09 +00:00
hyuraku
bdf493b673 change export two constants timing 2019-12-09 23:08:24 +09:00
Mike McQuaid
bed5297b6c
.github/workflows/tests: run config, doctor.
This should help with debugging why the `brew bundle` tests are now
failing.
2019-12-04 15:35:31 +00:00