Michka Popoff
bc83c39337
debian7: force usage of brewed ca-certificates
2022-02-22 13:26:59 +01:00
Mike McQuaid
04938efc24
Unify GitHub Packages authorization logic in brew.sh
.
2022-01-27 15:44:34 +00:00
Mike McQuaid
3f46654592
brew.sh: tweak lsb_release parameters.
...
Fixes #12642
2021-12-29 13:08:00 +00:00
Bo Anderson
6fa70337e3
Fix linuxbrew-core migration not applying to Linuxbrew/homebrew-core
2021-12-11 22:35:42 +00:00
Mike McQuaid
6913c7c84e
Output environment variable hints.
...
Output hints for disabling automatic `brew update`, `brew cleanup` and
`brew upgrade`/`brew reinstall` of dependents. Also provide a
`HOMEBREW_NO_ENV_HINTS` to disable this messaging.
2021-11-26 13:14:10 +00:00
Carlo Cabrera
f114b89750
brew.sh: move comment closer to code it references
2021-11-11 17:33:28 +08:00
Carlo Cabrera
49de2b0c1a
Check arch instead of the brand string
2021-11-11 17:30:02 +08:00
Bo Anderson
d0f6f7d52b
Require Ruby 2.6.8
2021-11-08 18:39:21 +00:00
Mike McQuaid
66c0b8c6f3
Merge pull request #12323 from Rylan12/cleanup-developer-mode-handling
...
Cleanup developer mode handling in `brew.{sh,rb}`
2021-10-27 11:12:00 +01:00
Rylan Polster
249886f36f
Cleanup developer mode handling in brew.{sh,rb}
2021-10-26 01:29:15 -04:00
EricFromCanada
c952ea7358
bump: fix tests
2021-10-25 15:55:11 -04:00
Bo Anderson
5a5a8d58b5
Merge pull request #12275 from Bo98/curl-capath
...
shims/shared/curl: pass both `--cafile` and `--capath` to override default
2021-10-20 16:28:15 +01:00
Bo Anderson
865c31a166
Set GIT_SSL_CAPATH to override default
2021-10-20 16:01:42 +01:00
Michka Popoff
1cc7ca33c0
update: migrate everyone from linuxbrew-core to homebrew-core
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-10-20 11:01:38 +01:00
Bob Lail
c3e48b004d
Add HOMEBREW_SSH_CONFIG_PATH
...
This allows specifying the path of an SSH config file that Homebrew should use instead of the default, `~/.ssh/config`, when fetching Git repos over SSH.
2021-10-20 09:01:57 +01:00
Michka Popoff
e8ee5b05f9
Migrate linuxbrew-core to homebrew-core on update.
...
- Only for HOMEBREW_DEVELOPER
- Except for HOMEBREW_CORE_MERGE_MAINTAINER
- Except for GitHub Actions CI
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-10-11 21:04:58 +02:00
Bo Anderson
6145036525
Redetermine curl and git paths where necessary
2021-10-05 17:13:47 +01:00
Bo Anderson
ebc0783c5f
Merge pull request #12167 from Bo98/brewed-curl-old-macos
...
Install and use Homebrew's `ca-certificates` on macOS <= 10.15.5
2021-10-04 05:29:57 +01:00
Bo Anderson
30b24cf4ad
Use HOMEBREW_CURL universally, including formulae
2021-10-04 02:03:04 +01:00
Bo Anderson
1952d27ba2
Install and use Homebrew's ca-certificates
on macOS <= 10.15.5
2021-10-03 17:52:10 +01:00
XuehaiPan
440fb7ee90
brew.sh: remove annoying prompts when homebrew/core not tapped
2021-09-28 19:33:31 +08:00
Xuehai Pan
d5a15cf289
brew.sh: remove deprecated command
...
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2021-09-16 20:40:20 +08:00
XuehaiPan
43377a3e5e
style: fix inconsistent code style for shell scripts by runing brew style --fix
2021-09-16 01:08:02 +08:00
XuehaiPan
bd8db0737d
style: fix inconsistent code style for shell scripts
2021-09-16 01:06:19 +08:00
XuehaiPan
c2d5d84b21
Merge remote-tracking branch 'upstream/master' into fix-inconsistent-shell-style
2021-09-16 01:01:49 +08:00
XuehaiPan
3f96d963f7
style: fix inconsistent code style for shell scripts
2021-09-15 14:59:01 +08:00
XuehaiPan
d77d510ce9
brew.sh: alias which
as type -P
2021-09-15 02:18:27 +08:00
Michka Popoff
4ef058412c
brew.sh: set HOMEBREW_FORCE_HOMEBREW_CORE_REPO_ON_LINUX when core repo is homebrew-core
...
See https://github.com/Homebrew/install/pull/571
When the install script sets as https://github.com/Homebrew/homebrew-core ,
we need to use the homebrew-core bottle domain, and correctly set
the HOMEBREW_CORE_DEFAULT_GIT_REMOTE below.
This also fixes the brew doctor issue for new homebrew-core Linux installations
Warning: Suspicious https://github.com/Homebrew/linuxbrew-core git origin remote found.
The current git origin is:
https://github.com/Homebrew/homebrew-core
With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
git -C "/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/linuxbrew-core
2021-08-31 21:48:38 +02:00
Rylan Polster
5ec335188f
Merge pull request #11754 from Rylan12/update-preinstall-check
...
Use Homebrew/brew when checking `HOMEBREW_AUTO_UPDATE_SECS`
2021-07-24 13:21:41 -04:00
Michka Popoff
bc8613cbe8
brews.sh: change HOMEBREW_MINIMUM_CURL_VERSION only for debian 7
...
I am not sure why we also checked for HOMEBREW_FORCE_HOMEBREW_ON_LINUX.
If the minimum curl version needs to be changed, we should introduce
specific env variables for each case that needs it, instead of
asking for HOMEBREW_FORCE_HOMEBREW_ON_LINUX to be set too (which is not the case
in the linuxbrew-core repo for example)
2021-07-23 14:51:35 +02:00
Rylan Polster
3dddbe39fa
Use Homebrew/brew when checking HOMEBREW_AUTO_UPDATE_SECS
2021-07-21 03:10:08 -04:00
Rylan Polster
27ba803bb5
Remove need for HOMEBREW_NO_DEV_CMD_MESSAGE
2021-07-20 11:47:31 -04:00
Rylan Polster
564a207bad
Add HOMEBREW_NO_DEV_CMD_MESSAGE
2021-07-19 10:06:38 -04:00
Rylan Polster
9f15432742
Fix tests
2021-07-17 14:08:38 -04:00
Rylan Polster
4ed44aa682
Fix style
2021-07-16 01:50:24 -04:00
Rylan Polster
5649d339d7
Show message when developer mode is turned on
2021-07-14 11:01:46 -04:00
Alexander Bayandin
7aacda1754
formula: add fuzzy_search method
2021-06-22 18:06:52 +01:00
Gautham Goli
e4118bc4ca
Fix shellcheck style errors
2021-05-18 17:10:20 +05:30
hyuraku
67c5006b0a
cmd/shellenv.sh: repair style and set HOMEBREW_CASK_REPOSITORY
2021-04-28 20:47:39 +09:00
Mike McQuaid
7af68d0f8e
Fix shellcheck failures
...
A new version of `shellcheck` (I think?) brought us so new warnings and
errors.
To fix:
- pass `--source-path` so we don't need to stop `shellcheck` trying to
read sourced files every time
- disable some more warnings/errors we don't care about fixing
2021-04-22 13:18:44 +01:00
hyuraku
117902803f
add detail comments and delete cask
2021-04-17 20:34:16 +09:00
hyuraku
83f8b9230a
brew.sh: repair style
2021-04-16 22:32:30 +09:00
Bo Anderson
7c9053753f
brew.sh: add workaround for old auto-updates
2021-04-16 12:32:34 +01:00
Bo Anderson
ad22854bcb
brew.sh: remove problematic HOMEBREW_BOTTLE_DOMAIN export
...
Partially fixes #11123 .
2021-04-13 03:54:32 +01:00
Mike McQuaid
bf199cf271
Default Homebrew on Linux to use GitHub Packages.
2021-04-09 09:17:25 +01:00
Mike McQuaid
a2251a16ff
Default download to GitHub Packages
...
Now that all bottles (without existing `sha256` mismatches) have been
uploaded to GitHub Packages make it the default download location.
Will give this a few days testing before we make a tag and make this
default for everyone.
No migration has been done for Linuxbrew packages yet; those will be
done after we have fully migrated over Homebrew.
2021-04-08 11:33:03 +01:00
Bo Anderson
5660a1bf13
brew.sh: HOMEBREW_SIMULATE_MACOS_ON_LINUX implies HOMEBREW_FORCE_HOMEBREW_ON_LINUX
2021-03-05 12:22:27 +00:00
Mike McQuaid
cca1413bf2
Merge pull request #10764 from Bo98/export-env
...
Let bin/brew handle its own exporting
2021-03-04 15:43:33 +00:00
Mike McQuaid
dc1fdc9f8d
Speedup brew --version
.
...
Port `brew --version` to Bash to speed it up.
While we're here:
- remove (now) unused `Tap` Git methods
- use `--quiet` instead of `-q` to be more verbose
Benchmarks:
```
$ hyperfine --min-runs=3 --warmup=2 "git checkout origin/master; brew --version" "git checkout speedup_brew_version; brew --version"
Benchmark #1 : git checkout origin/master; brew --version
Time (mean ± σ): 2.083 s ± 0.004 s [User: 396.8 ms, System: 597.2 ms]
Range (min … max): 2.080 s … 2.088 s 3 runs
Benchmark #2 : git checkout speedup_brew_version; brew --version
Time (mean ± σ): 847.9 ms ± 35.2 ms [User: 100.0 ms, System: 247.9 ms]
Range (min … max): 824.1 ms … 888.3 ms 3 runs
Summary
'git checkout speedup_brew_version; brew --version' ran
2.46 ± 0.10 times faster than 'git checkout origin/master; brew --version'
```
2021-03-04 12:59:42 +00:00
Bo Anderson
0a4fd2201e
Let bin/brew handle its own exporting
2021-03-02 16:59:57 +00:00