diff options
author | The Bundler Bot <bot@bundler.io> | 2018-01-13 04:49:34 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2018-01-13 04:49:34 +0000 |
commit | 723608f45866cee0f1b315551a8dde6a99efebc6 (patch) | |
tree | c564f117d651b37b963ddb95d57dc03bdfbc38a0 | |
parent | 26490663ad40e5a1d7f2bf4636c017933a72d272 (diff) | |
parent | 824c67ed21c296306c950f2d8bef837d19b74d6e (diff) | |
download | bundler-723608f45866cee0f1b315551a8dde6a99efebc6.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.
-rw-r--r-- | lib/bundler/cli.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 98c02fc791..40ba1287fb 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -719,6 +719,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). |