From 7adcea794bcad652d051eb8cd66d764945733eba Mon Sep 17 00:00:00 2001 From: Dimitris Christodoulou <36637689+DemetrisChr@users.noreply.github.com> Date: Tue, 6 Jan 2026 16:58:02 +0000 Subject: [PATCH] [backport] Fix GoCaves download error on macOS Backport of #193 --- Gemfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Gemfile b/Gemfile index 261e2d87..e1935d30 100644 --- a/Gemfile +++ b/Gemfile @@ -44,4 +44,15 @@ group :development do gem "ruby-lsp", require: false gem "simplecov-cobertura" gem "yard" + + # Resolves https://github.com/ruby/openssl/issues/949 which we encounter when downloading gocaves on macOS on CI + # This has been fixed in openssl versions 3.1.2, 3.2.2, 3.3.1. + # The latest dot-patch version of Ruby 3.3 and 3.4 now comes with a new enough openssl version by default. + if RUBY_PLATFORM.include?("darwin") + if RUBY_VERSION.start_with?('3.2') + gem "openssl", "~> 3.2.2" + elsif RUBY_VERSION.start_with?('3.1') + gem "openssl", "~> 3.1.2" + end + end end