Skip to content

Commit dd54298

Browse files
authored
[plugins] Always create plugin dir (#858)
## Summary We were not creating the plugin dir if there were no files in it but the redis plugin depends on the directory existing. Solution is to always create directory. Fixes #856 ## How was it tested? ``` devbox add redis devbox services start redis ```
1 parent 73ca55d commit dd54298

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/plugin/plugin.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ func (m *Manager) CreateFilesAndShowReadme(pkg, projectDir string) error {
4949
return nil
5050
}
5151

52+
// Always create this dir because some plugins depend on it.
53+
if err = createDir(filepath.Join(projectDir, VirtenvPath, pkg)); err != nil {
54+
return err
55+
}
56+
5257
debug.Log("Creating files for package %q create files", pkg)
5358
for filePath, contentPath := range cfg.CreateFiles {
5459
if !m.shouldCreateFile(filePath) {

0 commit comments

Comments
 (0)