Skip to content

Commit 54acc92

Browse files
committed
Load project plugins once project has been fully loaded
1 parent 2e4a3e8 commit 54acc92

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

internal/client/basis.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ func (b *Basis) DetectProject() (p *Project, err error) {
4949
if err != nil {
5050
return
5151
}
52-
b.client.LoadLocalProjectPlugins(dataPath.Join(b.basis.Name, "project", p.project.Name).String())
5352

5453
if err == nil {
5554
p.vagrantfile = v
55+
b.client.LoadLocalProjectPlugins(dataPath.Join(b.basis.Name, "project", p.project.Name).String())
5656
return
5757
}
5858

@@ -70,7 +70,7 @@ func (b *Basis) DetectProject() (p *Project, err error) {
7070
return
7171
}
7272

73-
return &Project{
73+
projectClient := &Project{
7474
basis: b,
7575
client: b.client,
7676
ctx: b.ctx,
@@ -79,7 +79,10 @@ func (b *Basis) DetectProject() (p *Project, err error) {
7979
ui: b.ui,
8080
vagrant: b.vagrant,
8181
vagrantfile: v,
82-
}, nil
82+
}
83+
b.client.LoadLocalProjectPlugins(dataPath.Join(b.basis.Name, "project", projectClient.project.Name).String())
84+
85+
return projectClient, nil
8386
}
8487

8588
func (b *Basis) LoadProject(n string) (*Project, error) {

0 commit comments

Comments
 (0)