Skip to content

Commit bd44bef

Browse files
committed
Fix GoCaves download error on macOS
1 parent d26f6cd commit bd44bef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,15 @@ group :development do
4444
gem "ruby-lsp", require: false
4545
gem "simplecov-cobertura"
4646
gem "yard"
47+
48+
# Resolves https://github.com/ruby/openssl/issues/949 which we encounter when downloading gocaves on Arm macOS on CI
49+
# This has been fixed in openssl versions 3.1.2, 3.2.2, 3.3.1.
50+
# The latest dot-patch version of Ruby 3.3 and 3.4 now comes with a new enough openssl version by default.
51+
if RUBY_PLATFORM.include?("darwin")
52+
if RUBY_VERSION.start_with?('3.2')
53+
gem "openssl", "~> 3.2.2"
54+
elsif RUBY_VERSION.start_with?('3.1')
55+
gem "openssl", "~> 3.1.2"
56+
end
57+
end
4758
end

0 commit comments

Comments
 (0)