Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/persistentdata/persistentdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package persistentdata

import (
"fmt"
"io/fs"
"os"
"path"
"path/filepath"

"github.com/spf13/afero"
Expand Down Expand Up @@ -64,6 +66,9 @@ func (c *Client) Get() (v Value, err error) {

for _, prefix := range writeOrder() {
v.Path = filepath.Join(prefix, dirname, c.fn)
if err = os.MkdirAll(path.Dir(v.Path), fs.ModePerm); err != nil {
continue
}
if err = c.write(v.Path, v.Content); err != nil {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/registry/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (h Hub) loadExisting() {
osFs := file.NewOsFs()
_ = osFs.WalkPathTree(h.PluginDirectory, func(path string, info os.FileInfo, err error) error {
if err != nil {
h.Logger.Warn("failed to read plugin directory, no existing plugins loaded", "directory", h.PluginDirectory)
h.Logger.Debug("failed to read plugin directory, no existing plugins loaded", "directory", h.PluginDirectory)
return nil
}
if info.IsDir() {
Expand Down