Sha256: d28d194102c9d141d95155cf6c8b8d98763cef2d1d0542aba38343db3271a9f9

Contents?: true

Size: 1.14 KB

Versions: 40

Compression:

Stored size: 1.14 KB

Contents

# This is a temporary monkey patch to address https://github.com/bundler/bundler/issues/4896
# the heart of the fix is line #18 with the addition of:
# && (possibility.activated - existing_node.payload.activated).empty?
# This ensures we do not mis linux platform gems in some scenarios like ffi in kitchen-test.
# There is a permanent fix to bundler (See https://github.com/bundler/bundler/pull/4836) which
# is due to ship in v1.14. Once we adopt that version, we can remove this file

require "bundler"
require "bundler/vendor/molinillo/lib/molinillo/resolution"

module Bundler::Molinillo
  class Resolver
    # A specific resolution from a given {Resolver}
    class Resolution
      def attempt_to_activate
        debug(depth) { "Attempting to activate " + possibility.to_s }
        existing_node = activated.vertex_named(name)
        if existing_node.payload && (possibility.activated - existing_node.payload.activated).empty?
          debug(depth) { "Found existing spec (#{existing_node.payload})" }
          attempt_to_activate_existing_spec(existing_node)
        else
          attempt_to_activate_new_spec
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
chef-12.22.5 tasks/bin/bundler_patch.rb
chef-12.22.5-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.22.3 tasks/bin/bundler_patch.rb
chef-12.22.3-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.31 tasks/bin/bundler_patch.rb
chef-12.21.31-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.26 tasks/bin/bundler_patch.rb
chef-12.21.26-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.20-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.20 tasks/bin/bundler_patch.rb
chef-12.21.14-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.14 tasks/bin/bundler_patch.rb
chef-12.21.12-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.12 tasks/bin/bundler_patch.rb
chef-12.21.10 tasks/bin/bundler_patch.rb
chef-12.21.10-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.4 tasks/bin/bundler_patch.rb
chef-12.21.4-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.1-universal-mingw32 tasks/bin/bundler_patch.rb
chef-12.21.1 tasks/bin/bundler_patch.rb