From b852e9180be6d98263a2c07028814e5e286154a1 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 12 May 2016 14:01:57 -0700 Subject: gem metadata command needs Gem.clear_paths otherwise it'll crash on the first run and have to be re-run --- lib/chef/cookbook/gem_installer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb index 06e98fe3e9..df73ce3ee4 100644 --- a/lib/chef/cookbook/gem_installer.rb +++ b/lib/chef/cookbook/gem_installer.rb @@ -59,6 +59,7 @@ class Chef Chef::Log.info(so.stdout) end end + Gem.clear_paths rescue Exception => e events.cookbook_gem_failed(e) raise -- cgit v1.2.1