65 Commits

Author SHA1 Message Date
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
Mike McQuaid
e9aba2efb6
Require and provide portable Ruby 2.6.3. 2019-10-10 15:53:16 +01:00
EricFromCanada
89f0fcedbe whitespace fixes 2019-04-13 21:32:04 -04:00
EricFromCanada
560ccddb69 help: rewrap output to 80 columns
Accounts for paragraph breaks and option descriptions. Also fixes some help text nits.
2019-03-11 12:52:07 -04:00
Shaun Jackman
8abc67a414 vendor-install: Add portable-ruby for aarch64 (ARM64) 2019-02-24 22:36:56 -08:00
Mike McQuaid
96c1dffb71
vendor-install: improve --help formatting. 2019-01-30 21:38:46 +00:00
Mike McQuaid
5084831a2b
vendor-install: use Mavericks portable Ruby.
This is not universal so is smaller (8MB vs 12MB). It also performs
5-10% faster at:
https://rubybench.org/ruby/ruby/releases?result_type=array_sample_100k___50k
2019-01-27 13:24:40 +00:00
Mike McQuaid
4feb851279
Fix brew style shellcheck warnings. 2018-10-07 22:08:59 +01:00
Shaun Jackman
cccc6aef18 Update portable-ruby to verison 2.3.7 for ARM [Linux] 2018-10-04 13:55:35 -07:00
Mike McQuaid
e1eb7dd3e3 Use Ruby 2.3.7
Fixes #4459.
2018-07-13 08:22:33 +01:00
Mike McQuaid
facd76bc51 portable-ruby: respect HOMEBREW_BOTTLE_DOMAIN variable.
This was requested in:
https://discourse.brew.sh/t/adding-additional-download-sources-to-homebrew/2446

With this change you can use e.g. Artifactory for Homebrew's portable
ruby.
2018-06-29 19:51:18 +01:00
Shaun Jackman
1d4862c846 vendor-install: Add portable-ruby bottle for ARM 2018-05-05 22:26:57 -07:00
Shaun Jackman
23ac5949d0 vendor-install: Fix portable-ruby bottle filename 2018-05-05 22:26:57 -07:00
Mike McQuaid
d0cc8823b4 portable-ruby 2.3.3_2
Now with a working DBM on Linux.
2018-05-03 09:06:32 +01:00
Mike McQuaid
f4e2432284 portable-ruby: increase to 2.3.1_1.
Install the latest Ruby from:
https://github.com/Homebrew/homebrew-portable-ruby/pull/55

This updates ncurses and openssl as well as more closely matching the
Apple's ruby build options.

Notably, this includes the DBM support needed for #3720.
2018-04-30 08:43:43 +01:00
Mike McQuaid
ae5e904c08 Only read curlrc if HOMEBREW_CURLRC is set.
This reverses the previous, incorrect order.
2018-04-09 15:43:03 -07:00
Mike McQuaid
0bd5869319 Add/use HOMEBREW_CURLRC variable. 2018-04-08 15:51:58 -07:00
Stefan Sundin
0ec47813f1 Prevent .curlrc from being loaded. 2018-04-06 14:13:26 -07:00
Buck Evan
0a2e649f00 type -P is more portable than which
Migrated from https://github.com/Linuxbrew/brew/pull/621
2018-03-18 16:51:22 -07:00
Mike McQuaid
fea90825fb vendor-install: various portable ruby tweaks.
- Rename repository to homebrew-portable-ruby
- Add a new Bintray repository using new name
- Add GitHub releases mirror and try to use it
- Tell people not to file issues if they can't connect to Bintray or
  GitHub: we're not here to provide ISP/proxy support.
2018-01-14 13:49:26 +00:00
Shaun Jackman
2dbc4ffaf3 vendor-install: Add ARM bottle for portable-ruby 2017-11-27 12:09:27 -08:00
Shaun Jackman
6da95d882d vendor-install: Observe HOMEBREW_STDERR
Suppress stderr unless HOMEBREW_STDERR is set.
2017-11-16 11:08:50 -08:00
Mike McQuaid
270b752f5d Merge pull request #3326 from sjackman/portable-ruby
portable-ruby: use rebuild with coverage support for Linux.
2017-10-18 11:04:56 +01:00
Mike McQuaid
d601edaf57 vendor-install: use full shasum PATH.
Otherwise things can explode if there's a random `shasum`.

See #3281.
2017-10-17 20:51:32 +01:00