88 Commits

Author SHA1 Message Date
Kevin
5a297a7dd5
Merge pull request #16499 from p-linnane/vendor-install-wording
cmd/vendor-install: adjust wording
2024-01-18 21:49:49 -08:00
Patrick Linnane
532fdc0f73
cmd/vendor-install: adjust wording
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-18 09:41:19 -08:00
Mike McQuaid
fd9775d512
cmd/vendor-install: fix some elses.
The logic in #16495 wasn't quite right.
2024-01-18 17:35:47 +00:00
Mike McQuaid
ebfa93c949
cmd/vendor-install: undocumented option to allow setting processor.
This can be useful when testing fetch on a different processor than the
one the user is running on.

While we're here, refactor code run on `source` to need a function call
instead.
2024-01-18 14:38:56 +00:00
Bo Anderson
7ba5480dff
cmd/vendor-install: don't silence stderr 2023-12-08 00:10:56 +00:00
Bo Anderson
489879ff72
Enable Ruby 3 for all users 2023-11-29 15:30:17 +00:00
Bo Anderson
4ec450823c
Portable Ruby 3.1.4 (opt-in beta) 2023-10-27 15:58:43 +01:00
Clint Harrison
e75a72dcb5 Use HOMEBREW_CURLRC in vendor-install 2023-08-22 17:21:37 -04:00
Bo Anderson
1b0bd8a6a9
Portable Ruby 2.6.10_1
Release notes: https://github.com/Homebrew/homebrew-portable-ruby/releases/tag/2.6.10_1
2023-04-11 18:10:37 +01:00
EricFromCanada
dfc9906184
internal messaging fixes 2023-02-10 23:17:16 -05:00
Bo Anderson
01a93edac3
Portable Ruby 2.6.8_1 2022-06-03 18:00:16 +01:00
Mike McQuaid
04938efc24
Unify GitHub Packages authorization logic in brew.sh. 2022-01-27 15:44:34 +00:00
Thomas Vaillant
ad65d47bee
fix: take $HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN into account when installing portable ruby 2022-01-27 09:37:20 +00:00
Thomas Vaillant
0266d77b0f fix: take $HOMEBREW_DOCKER_REGISTRY_TOKEN into account when installing portable Ruby 2021-12-16 18:50:58 +01:00
Carlo Cabrera
49de2b0c1a
Check arch instead of the brand string 2021-11-11 17:30:02 +08:00
Carlo Cabrera
98b33e6732
Remove another redundant conditional
This condition is always true when we've reached this branch.
2021-11-11 16:28:15 +08:00
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
Bo Anderson
188265544b
cmd/vendor-install: add arm64 macOS portable-ruby build 2021-11-08 19:20:40 +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
Bo Anderson
cd808983bc
Portable Ruby 2.6.8 2021-10-21 02:24:50 +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
3f96d963f7 style: fix inconsistent code style for shell scripts 2021-09-15 14:59:01 +08:00
XuehaiPan
b5bc6368b7 cmd/vendor-install.sh: update artifact URL 2021-09-12 23:38:33 +08:00
XuehaiPan
7da8a9ebc1 cmd/vendor-install.sh: allow download vendors from HOMEBREW_ARTIFACT_DOMAIN and HOMEBREW_BOTTLE_DOMAIN 2021-09-12 21:54:37 +08:00
Gautham Goli
e4118bc4ca Fix shellcheck style errors 2021-05-18 17:10:20 +05:30
Mike McQuaid
b914411ac8
Delete Bintray code
Remove all code related to Bintray. It no longer works so there's no
point keeping it around.

Some of this could arguably be deprecated/disabled first/instead but:
I'm not sure I see the sense in keeping stuff around that's known to be
broken.
2021-05-12 13:37:18 +01:00
hyuraku
61076c7c26 add how to set HOMEBREW_CURL 2021-04-26 21:56:27 +09:00
hyuraku
51c39c898f add SC2153 2021-04-24 00:35:03 +09:00
hyuraku
e82e4ea7c2 repair vendor-install.sh 2021-04-24 00:02:50 +09:00
hyuraku
c67c202e54 add how to set ENV 2021-04-23 22:56:08 +09:00
Gautham Goli
5183f9aeaf vendor-install.sh: Fix shellcheck style errors 2021-04-23 22:26:21 +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
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
Mike McQuaid
1012f98c00
cmd/vendor-install: use GitHub for portable Ruby.
Let's default to using GitHub for portable Ruby and fall back to Bintray
(because Bintray is going away).
2021-04-01 17:37:08 +01:00
EricFromCanada
6fc116318e fixes for grammar and wording 2021-01-26 16:19:47 -05:00
Maxim Belkin
45d67ef13e
brew.sh: define minimum required Glibc version 2020-12-24 09:10:53 -06:00
Maxim Belkin
e6c08bd9a5
vendor-install: wrap ldd-checking code in a function
and call it in `homebrew-vendor-install()` on Linux.
2020-12-15 08:34:28 -06:00
Maxim Belkin
40cd44a45f
cmd/vendor-install.sh: fail for old Glibc 2020-12-15 08:34:27 -06:00
Misty De Meo
4305ff9602 vendor-install: upgrade to 2.6.3_2 2020-06-16 13:53:28 -07:00
Misty De Meo
f4ff5a22f8
vendor-install: remove ARM 2020-06-10 13:08:09 -07:00
Misty De Meo
0c1cf592b7
Bump minimum OS to Yosemite 2020-06-10 13:08:01 -07:00
Mike McQuaid
6123cdb767
Improve Homebrew Portable Ruby messaging
As-of https://github.com/Homebrew/homebrew-portable-ruby/pull/100 we've
removed ARM builds for Portable Ruby due to months of breakage.
Similarly, when we last bumped Portable Ruby the ARM build was much
delayed but, despite Homebrew/brew being completely unusable to anyone
using it on ARM in that case, no-one complained or filed issues.

Instead of attempting to maintain and update a Portable Ruby on niche
(Homebrew) platforms like ARM (or, in past/future PPC) improve the
messaging to provide users with a workaround.

Now we allow only a major/minor version match it should be pretty
doable for those users to install e.g. a prebuilt Ruby binary from a PPA
or built it from source if needed using `ruby-build` and `rbenv`.

The messaging could be improved further but we're somewhat limited by
`ruby.sh` and `vendor-install.sh` being separate. I'm tempted to combine
them (or at least have `vendor-install.sh` not be so generic as to not
be able to give Ruby-specific advice).
2020-05-02 13:53:45 +01:00
EricFromCanada
0242084929 shell commands: colourize messages 2019-11-21 16:18:46 -05:00
Shaun Jackman
023f0b59a2 vendor-install: Change double hyphen to single 2019-10-22 11:26:16 -07:00
Shaun Jackman
6169244b15 vendor-install: Update aarch64 and add armv6 2019-10-19 11:16:42 -07:00
Shaun Jackman
c71b540ea6 vendor-install: Add ruby bottle for aarch64 2019-10-13 14:24:08 -07:00
Mike McQuaid
209d12b89f
vendor-install: remove ARM bottles until built. 2019-10-10 16:17:06 +01:00