From d8455c0a9a56b53b1908845ea82ff93c75176c0d Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 11 Nov 2016 14:33:26 -0800 Subject: [PATCH] Add custom sources if not included --- lib/vagrant/bundler.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb index f62e4de2f..a4bb5157f 100644 --- a/lib/vagrant/bundler.rb +++ b/lib/vagrant/bundler.rb @@ -238,6 +238,11 @@ module Vagrant if plugin_source = info.delete("local_source") installer_set.add_local(plugin_source.spec.name, plugin_source.spec, plugin_source) end + Array(info["sources"]).each do |source| + if !Gem.sources.include?(source) + Gem.sources << source + end + end Gem::Dependency.new(name, gem_version) end