File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
13
13
"github.com/hashicorp/vagrant-plugin-sdk/config"
14
14
"github.com/hashicorp/vagrant-plugin-sdk/helper/path"
15
+ "github.com/hashicorp/vagrant-plugin-sdk/helper/paths"
15
16
"github.com/hashicorp/vagrant-plugin-sdk/proto/vagrant_plugin_sdk"
16
17
"github.com/hashicorp/vagrant-plugin-sdk/terminal"
17
18
"github.com/hashicorp/vagrant/internal/server/proto/vagrant_server"
@@ -44,6 +45,11 @@ func (b *Basis) DetectProject() (p *Project, err error) {
44
45
if err != nil && status .Code (err ) != codes .NotFound {
45
46
return
46
47
}
48
+ dataPath , err := paths .VagrantData ()
49
+ if err != nil {
50
+ return
51
+ }
52
+ b .client .LoadLocalProjectPlugins (dataPath .Join (b .basis .Name , "project" , p .project .Name ).String ())
47
53
48
54
if err == nil {
49
55
p .vagrantfile = v
Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ func (c *Client) UI() terminal.UI {
201
201
return c .ui
202
202
}
203
203
204
+ func (c * Client ) LoadLocalProjectPlugins (path string ) error {
205
+ return c .runner .LoadLocalProjectPlugins (path )
206
+ }
207
+
204
208
type clientConfig struct {
205
209
connectOpts []serverclient.ConnectOption
206
210
}
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ func New(opts ...Option) (*Runner, error) {
157
157
}
158
158
159
159
func (r * Runner ) LoadLocalProjectPlugins (path string ) error {
160
+ // TODO: should this check if the runner is local?
160
161
err := r .plugins .LoadLocalLegacyPlugins (
161
162
r .vagrantRubyClient , r .vagrantRubyRuntime , path )
162
163
return err
You can’t perform that action at this time.
0 commit comments