[前][次][番号順一覧][スレッド一覧]

ruby-changes:62250

From: David <ko1@a...>
Date: Wed, 15 Jul 2020 16:06:07 +0900 (JST)
Subject: [ruby-changes:62250] 0c8d90b526 (master): [rubygems/rubygems] Unswallow `Gem::Package::FormatError`

https://git.ruby-lang.org/ruby.git/commit/?id=0c8d90b526

From 0c8d90b5269829d9209a409163832998d5d77af4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Wed, 1 Jul 2020 15:09:44 +0200
Subject: [rubygems/rubygems] Unswallow `Gem::Package::FormatError`

This error happen in a CI run, and as it is currently, it doesn't give
any useful information about the underlying cause. Let's not swallow the
original error.

https://github.com/rubygems/rubygems/commit/8c17ba2f45

diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index b6f9384..5470eb7 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -255,8 +255,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/rubygems_integration.rb#L255
       require "rubygems/security"
       require_relative "psyched_yaml"
       gem_from_path(path, security_policies[policy]).spec
-    rescue Gem::Package::FormatError
-      raise GemspecError, "Could not read gem at #{path}. It may be corrupted."
     rescue Exception, Gem::Exception, Gem::Security::Exception => e # rubocop:disable Lint/RescueException
       if e.is_a?(Gem::Security::Exception) ||
           e.message =~ /unknown trust policy|unsigned gem/i ||
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]