Skip to content
GitLab
Menu
项目
Groups
代码片段
正在加载...
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
Menu
打开侧边栏
p4git
grpc
提交
f7594201
提交
f7594201
编辑于
4年前
作者:
Jan Tattermusch
浏览文件
操作
下载
电子邮件补丁
差异文件
unbreak ruby install by pinning brew gnupg
上级
647c78d1
变更
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 addition
and
0 deletion
+16
-0
tools/internal_ci/helper_scripts/prepare_build_macos_rc
tools/internal_ci/helper_scripts/prepare_build_macos_rc
+16
-0
未找到文件。
tools/internal_ci/helper_scripts/prepare_build_macos_rc
浏览文件 @
f7594201
...
...
@@ -37,16 +37,32 @@ fi
if
[
"
${
PREPARE_BUILD_INSTALL_DEPS_RUBY
}
"
==
"true"
]
then
brew update
# The latest gnupg version removes support for macos high sierra which would break ruby installation,
# so we need to pin a version before that. Unfortunately Homebrew is one of the most pathetic package
# managers out there and there is simply no way to install a specific version of gnupg.
# Instead, we force homebrew to use a slightly old version of the homebrew-core
# formula repository (before things got broken for us), so the homebrew formulas installed later
# will still work with MacOS high-sierra.
# Also https://github.com/Homebrew/homebrew-core/blob/07f2f9aab198ce369e24621b7c7224f63ffd27fb/Formula/gnupg.rb
# TODO(jtattermusch): migrate to MacOS mojave as soon as possible to avoid this ugly hack.
(
cd
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
;
git checkout 07f2f9aab198ce369e24621b7c7224f63ffd27fb
)
# disable automatic brew update on "brew install" (which would ruin our explicit checkout)
export
HOMEBREW_NO_AUTO_UPDATE
=
1
# special case fix for https://github.com/grpc/grpc/issues/23027
rm
-f
/usr/local/bin/gpg
rm
-f
/usr/local/bin/gpgconf
rm
-f
/usr/local/bin/gpgsm
# end https://github.com/grpc/grpc/issues/23027
brew cleanup
set
+ex
source
$HOME
/.rvm/scripts/rvm
set
-ex
for
RUBY_VERSION
in
2.5.0 2.7.0
;
do
# TODO(jtattermusch): find a better way of installing ruby, as the current way installs a huge number
# of completely unnecessary brew packages which 1. takes long time 2. is very prone to errors
# 3. generates a ton of logs making it super hard to debug when it breaks.
rvm
--debug
requirements
"ruby-
${
RUBY_VERSION
}
"
time
rvm
install
"
$RUBY_VERSION
"
time
gem
install
bundler
-v
1.17.3
--no-document
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录