You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running inizio with --plugin.path, which contains subdirectories, cause panic with index out of range.
The problem is in incorrect usage of afero.Fs: RegexpFs does not skip directories according to passed regexp: if i.IsDir() || f.re.MatchString(i.Name())
Describe the bug
Running
inizio
with--plugin.path
, which contains subdirectories, cause panic with index out of range.The problem is in incorrect usage of
afero.Fs
:RegexpFs
does not skip directories according to passed regexp:if i.IsDir() || f.re.MatchString(i.Name())
To Reproduce
Steps to reproduce the behavior:
/usr/local/bin/inizio-plugins
/usr/local/bin/inizio-plugins/test
inizio
:inizio /path/to/project
Expected behavior
inizio
must skipFS
items according to regexp and not exit with panic.Environment:
Additional context
Panic stack trace:
panic: runtime error: index out of range [1] with length 0 goroutine 1 [running]: github.com/insidieux/inizio/internal/plugins.(*Loader).Load(0xc0001d9bd0, 0x17c6df0, 0xc00028c6c0, 0x7ffeefbffb36, 0x2d, 0xc000322a20, 0x16f74ff, 0xc, 0x7ffeefbffb36, 0x2d) /project/internal/plugins/loader.go:51 +0x685
The text was updated successfully, but these errors were encountered: