274 Commits

Author SHA1 Message Date
Dawid Dziurla
e1700178bd
brew.sh: add missing dev-cmd aliases 2023-02-01 13:51:18 +01:00
Mike McQuaid
8e1bcd93f3
brew.sh: test HOMEBREW_INSTALL_FROM_API on developers.
Test `HOMEBREW_INSTALL_FROM_API` on `HOMEBREW_DEV_CMD_RUN` and
`HOMEBREW_DEVELOPER` folks who haven't run a
`HOMEBREW_DEVELOPER_COMMAND`.

The next step after this will be to make this functionality the default
for everyone.
2023-01-20 19:50:42 +00:00
Mike McQuaid
653b349c8b
Change HOMEBREW_INSTALL_FROM_API update frequency
This doesn't need to be nearly as often for HOMEBREW_INSTALL_FROM_API users because we're getting the latest information from the API when needed rather than just at `brew update` time.
2023-01-18 15:11:42 +00:00
Mike McQuaid
a85e1a3e5a
brew.sh: tweak comment. 2023-01-05 09:59:30 +00:00
Asutosh Palai
96449a94e0 restoring the original path after update
This fix is required for ARM Linux where portable Homebrew Portable Ruby is not
available. Without this fix, after auto update, brew is restarted with cleaned up path.
This causes it to pick not find user installed Ruby by RVM or rbenv, causing brew to fail.
2023-01-04 22:23:01 +00:00
Mike McQuaid
40f85af824
brew.sh: fix shellcheck. 2022-12-13 11:37:05 +00:00
Carlo Cabrera
239743f39b
Fix shellcheck error 2022-11-24 22:15:03 +08:00
Carlo Cabrera
cf01a7f985
brew.sh: remove HOMEBREW_CHANGE_ARCH_TO_ARM
We used to need this because the GitHub runner process was running under
Rosetta. GitHub Actions has supported native M1 runners for a few months
now, so I think it's time to remove this.
2022-11-24 22:07:30 +08:00
Bo Anderson
7d7083d0f3
Universally apply Ruby disable options 2022-11-05 01:58:12 +00:00
Bo Anderson
8cb056c657
Remove sitedir from LOAD_PATH 2022-10-24 19:42:49 +01:00
Michka Popoff
354852f848
brew: remove HOMEBREW_ON_DEBIAN7
This is not used anymore, we are building on ubuntu 16.04 for our portable packages: https://github.com/Homebrew/homebrew-portable-ruby
2022-09-28 23:12:58 +02:00
Bo Anderson
a0985191ea
Add messaging for Docker image deprecation 2022-09-07 13:26:08 +01:00
Mike McQuaid
e58d7d3456
brew: improve Docker detection.
Needed for Ubuntu 22.04.
2022-09-06 16:32:35 +01:00
Mike McQuaid
8cb5350d65
Revert "Merge pull request #13447 from notfromstatefarm/feature/support-custom-ssh"
This reverts commit ef00b40a5172d5628a0c861f655a2277fd16a1e0, reversing
changes made to e1fca95836fcb1ad989cd995228192846fc99612.
2022-06-28 09:42:50 +01:00
notfromstatefarm
8d76522be2
remove HOMEBREW_SSH_PATH 2022-06-22 19:22:48 -04:00
notfromstatefarm
540313f18b
support custom git SSH binaries 2022-06-22 19:22:41 -04:00
Bo Anderson
1e52f08f49
brew.sh: fix HOMEBREW_CORE_DEFAULT_GIT_REMOTE not being exported 2022-06-17 19:47:55 +01:00
Rylan Polster
b896f6cb0d
Allow more developer commands with HOMEBREW_INSTALL_FROM_API 2022-06-16 21:31:15 -04:00
Rylan Polster
d23dba67ca
Merge pull request #12936 from Bo98/api-offline
Improve consistency between Git and API formula handling
2022-06-16 16:11:38 -04:00
Bo Anderson
1d36c42fb7
Support offline usage under HOMEBREW_INSTALL_FROM_API 2022-06-14 16:06:05 -04:00
Mike McQuaid
77203e0760
Document HOMEBREW_CURL_PATH and HOMEBREW_GIT_PATH
- document both these variables in `man brew`
- allow them to be used on Linux without `HOMEBREW_DEVELOPER`
2022-06-14 10:33:30 +01:00
Bo Anderson
d857c8416d
os/mac: allow fake El Capitan setup for Portable Ruby builds 2022-05-31 17:56:25 +01:00
Mike McQuaid
1bb44979ee
Disable and delete code for 3.5.0
The next planned release will be 3.5.0 so let's fix things up for there.
2022-05-30 14:59:14 +01:00
Mike McQuaid
00c5960a6a
Merge pull request #13299 from MikeMcQuaid/update_improvements
Improve updating behaviour
2022-05-24 13:05:24 +01:00
Gordon Bleux
9cbaf97069 decouple authentication information from HOMEBREW_ARTIFACT_DOMAIN
add support for credentials usage in combination with other mirroring
features. previously `HOMEBREW_DOCKER_REGISTRY_TOKEN` and
`HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN` where only used in combination
with `HOMEBREW_ARTIFACT_DOMAIN` which affects *all* curl download strategies.
`HOMEBREW_BOTTLE_DOMAIN` is only used for bottle artifacts, whose mirror might
also require credentials.
this change removes the requirement of using `HOMEBREW_ARTIFACT_DOMAIN`.

related to #13226
2022-05-23 10:38:52 +02:00
Mike McQuaid
fb4c9353bb
Improve updating behaviour
- Rename use of "preinstall" to "auto update". The original "preinstall"
  naming came from the fact that we used to only auto-update before
  `brew install` but now that it's many commands: this is more confusing
  than useful.
- Add `HOMEBREW_NO_UPDATE_REPORT_ONLY_INSTALLED` and remove
  `HOMEBREW_UPDATE_REPORT_ONLY_INSTALLED`; the latter is now the default
  and the prior provides an opt-out for better output, performance and
  avoiding reading potentially untrusted formulae.
- Add `HOMEBREW_UPDATE_FORMULA_VERSION_CHECKS` and don't check formula
  versions by default for better performance by default.

Co-authored-by: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com>
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-05-19 11:04:20 -04:00
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