summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-01-13 04:49:34 +0000
committerColby Swandale <me@colby.fyi>2018-04-20 10:26:13 +1000
commit35829b9ebed452f2e28c18bd5e87a600ea81723c (patch)
tree3e59746edc2ce433ad7f1ac44541e00db1f0ecc3
parentb91b874122abb5123194aaa383e48ce0aedc7f6f (diff)
downloadbundler-35829b9ebed452f2e28c18bd5e87a600ea81723c.tar.gz
Auto merge of #6238 - bundler:seg-outdated-fips, r=olleolleolle
[CLI] Skip the outdated bundler check when MD5 is not available ### What was the end-user problem that led to this PR? The problem was Bundler would try to do the outdated version check on FIPS systems, leading to an exception. Closes #6032. ### What was your diagnosis of the problem? My diagnosis was we needed to skip the check when MD5 is unavailable. ### Why did you choose this fix out of the possible options? I chose this fix because using `#available?` would make network requests, which is not acceptable. (cherry picked from commit 723608f45866cee0f1b315551a8dde6a99efebc6)
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 05e1851c18..7dd54671de 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -717,6 +717,8 @@ module Bundler
command_name = current_command.name
return if PARSEABLE_COMMANDS.include?(command_name)
+ return unless SharedHelpers.md5_available?
+
latest = Fetcher::CompactIndex.
new(nil, Source::Rubygems::Remote.new(URI("https://rubygems.org")), nil).
send(:compact_index_client).