Carlo Cabrera
fd1ca7e2b7
Remove redundant conditionals
...
Whenever the `sysctl` call does not match `"Apple"*`, we can be sure
that `HOMEBREW_PROCESSOR` is `Intel`, so there's no need for this
additional check.
2021-11-11 16:24:59 +08:00
Carlo Cabrera
51ab1649fb
Install Portable Ruby on native ARM installs
...
The previous commit only prevented the installation of an Intel Portable
Ruby into `/opt/homebrew` prefix. Let's actually install an ARM64
Portable Ruby there too.
2021-11-11 16:21:35 +08:00
Carlo Cabrera
8aeb28781c
vendor-install: handle native ARM running under Rosetta
...
Since `HOMEBREW_PROCESSOR` is populated using `uname -m`, this will
register as `Intel` even when a native ARM install is running under
Rosetta.
Let's work around this by checking `sysctl -n machdep.cpu.brand_string`.
On my Intel machine:
❯ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
On Apple Silicon:
brew@HMBRW-A-001-M1-001 ~ % sysctl -n machdep.cpu.brand_string
Apple M1
The case of a Rosetta installation of Homebrew is already handled below
the proposed change.
Fixes Homebrew/discussions#2434 .
2021-11-11 16:06:33 +08:00
Carlo Cabrera
df2ded4e96
Merge pull request #12386 from FnControlOption/search
...
search: split up command into multiple methods
2021-11-10 20:57:04 +08:00
Bo Anderson
188265544b
cmd/vendor-install: add arm64 macOS portable-ruby build
2021-11-08 19:20:40 +00:00
fn ⌃ ⌥
4698dfe9ae
search: print newline if neither --formula nor --cask specified
2021-11-08 08:55:18 -08:00
fn ⌃ ⌥
9438dc94e3
search: split missing formula help into its own method
2021-11-08 08:55:18 -08:00
fn ⌃ ⌥
896aff0cf2
search: split up command into multiple methods
2021-11-08 08:55:18 -08:00
XuehaiPan
cf7def0c68
style: apply shellcheck autofix
2021-11-08 03:07:25 +00:00
Mike McQuaid
342f8e1e71
vendor-install: better handle /usr/local arm64 ruby.
...
Fixes https://github.com/Homebrew/brew/issues/12351
2021-11-05 12:35:46 +00:00
Rylan Polster
6db19212c6
Fix brew untap
with HOMEBREW_INSTALL_FROM_API
2021-10-28 17:13:34 -04:00
Rylan Polster
9fee68c500
Fix installing from API with tap names
2021-10-28 01:25:27 -04:00
Rylan Polster
7bb69e0b4c
Fix brew install
with tap regex
2021-10-27 01:42:08 -04:00
Mike McQuaid
25e61f65db
cmd/update-report: check core tap is installed.
...
Otherwise `CoreTap.instance.linuxbrew_core?` can fail.
2021-10-25 16:52:29 +01:00
Rylan Polster
0b8032d421
Document HOMEBREW_INSTALL_FROM_API
2021-10-22 12:37:57 -04:00
Rylan Polster
8193807f8d
update-report
: fix unset cask repo variable error
2021-10-21 18:33:44 -04:00
Mike McQuaid
0118e6ec41
Apply suggestions from code review
...
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com>
2021-10-21 15:10:17 +01:00
Mike McQuaid
eb1b244fd2
update-report: better handle user set bottle domain, core git remote.
...
Unset these variables and print a warning if they were set to
non-default values.
2021-10-21 15:01:58 +01:00
Bo Anderson
cd808983bc
Portable Ruby 2.6.8
2021-10-21 02:24:50 +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
Dawid Dziurla
79293a3518
Merge pull request #12255 from carlocab/search-arch
...
cmd/search: add Arch Linux
2021-10-20 02:03:35 +02:00
Mike McQuaid
f65d525693
Deprecations/disables for 3.3.0/4.0.0.
...
Deprecate, disable and remove code for Homebrew 3.3.0 or 4.0.0
(whichever the next release ends up being).
2021-10-19 16:36:42 +01:00
Carlo Cabrera
93340e08d5
cmd/search: add Arch Linux
...
Arch update their packages very quickly, so they're quite useful as a
reference for building formulae.
2021-10-19 04:40:00 +08:00
Carlo Cabrera
238387d694
Use HOMEBREW_DEFAULT_PREFIX
instead of /usr/local
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-10-15 00:17:55 +08:00
Carlo Cabrera
19953c01b3
cmd/link: change default_prefix?
check to /usr/local
check
...
Linking macOS-provided software breaks things only in `/usr/local`
prefixes, hence the `default_prefix?` check, which was included when our
only default prefix on macOS was `/usr/local`. Now that we install into
`/opt/homebrew` too, the default prefix check is needlessly restrictive.
2021-10-14 22:13:55 +08:00
Mike McQuaid
cc2c19be98
Merge pull request #12221 from XuehaiPan/brew-retap
...
tap: allow to change tap remote with `brew tap --custom-remote`
2021-10-12 14:08:21 +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
XuehaiPan
63f2f6cca7
tap: allow to change tap remote with brew tap --custom-remote
2021-10-12 01:11:34 +08:00
Milo Lee
73e099aee7
Make brew style happy
2021-10-09 00:01:12 +08:00
Milo Lee
5cedb75a62
Handle the case superclass is a subclass of Formula
2021-10-08 10:13:29 +08:00
Bo Anderson
6145036525
Redetermine curl and git paths where necessary
2021-10-05 17:13:47 +01:00
Bo Anderson
549eaa1563
cmd/update-reset: fix errors when the git shim changes in a brew update
2021-10-05 03:46:54 +01:00
Bo Anderson
0ba222ccf2
cmd/update.sh: don't absorb ca-certificates installation failure
2021-10-04 14:26:49 +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
hyuraku
ce89ce1191
repair brew info description
2021-10-01 09:38:31 +09:00
Mike McQuaid
41e94afda5
Fix brew style
...
Fixes for https://github.com/Homebrew/brew/pull/12152 .
Extracted into a separate PR so this can be merged immediately.
2021-09-30 10:13:53 +01:00
hyuraku
a6b7a9662a
repair command description
2021-09-30 09:56:39 +09:00
hyuraku
4685120692
add cask option to brew log
2021-09-29 22:24:20 +09:00
fn ⌃ ⌥
8dc060c88b
upgrade: use greedy_* method parameters
2021-09-21 11:45:49 -07:00
Mike McQuaid
a3e652e8d8
Merge pull request #12087 from Rylan12/api-head-install-fixes
...
install: fix `HEAD` installations with `HOMEBREW_INSTALL_FROM_API`
2021-09-21 09:43:33 +01:00
Bo Anderson
59dc0ed652
formula_installer: fix error if a compatible bottle was not found
2021-09-20 20:57:39 +01:00
Rylan Polster
50fac1737a
install: fix HEAD
installations with HOMEBREW_INSTALL_FROM_API
2021-09-17 23:46:28 -04:00
Bo Anderson
4c48ace9d1
cmd/info: print backtrace to developers for unreadable formulae/casks
2021-09-17 00:17:22 +01: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
8a363b2fb5
style: trim trailing whitespaces
2021-09-15 15:00:23 +08:00
XuehaiPan
3f96d963f7
style: fix inconsistent code style for shell scripts
2021-09-15 14:59:01 +08:00