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.
This commit is contained in:
Chris Roberts 2017-01-06 12:55:13 -08:00
parent 159fca9d13
commit df00edf1a7
1 changed files with 1 additions and 0 deletions

View File

@ -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