lib/berkshelf/resolver.rb in berkshelf-3.0.0.beta6 vs lib/berkshelf/resolver.rb in berkshelf-3.0.0.beta7

- old
+ new

@@ -69,11 +69,13 @@ def resolve graph.populate_store graph.populate(berksfile.sources) Solve.it!(graph, demand_array, ENV['DEBUG_RESOLVER'] ? { ui: Berkshelf.ui } : {}).collect do |name, version| - dependency = get_demand(name) || Dependency.new(berksfile, name, locked_version: version) - [ name, version, dependency ] + dependency = get_demand(name) || Dependency.new(berksfile, name) + dependency.locked_version = version + + dependency end rescue Solve::Errors::NoSolutionError raise Berkshelf::NoSolutionError.new(demands) end