From df00edf1a78e0e898fbe9b75f10cc2e8fcc31d6d Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 6 Jan 2017 12:55:13 -0800 Subject: [PATCH] Set base directory to parent directory within plugin specs This adjustment allows for extensions to be properly discovered after plugin gem specifications have been activated. --- lib/vagrant/bundler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb index 2a70c7191..d19e3d98c 100644 --- a/lib/vagrant/bundler.rb +++ b/lib/vagrant/bundler.rb @@ -398,6 +398,7 @@ module Vagrant end spec.full_gem_path = File.expand_path(directory) + spec.base_dir = File.dirname(spec.base_dir) @specs[spec.name] ||= [] @specs[spec.name] << spec