diff --git a/pkg/loader/loader.go b/pkg/loader/loader.go index f60f09a1..339b4bdf 100644 --- a/pkg/loader/loader.go +++ b/pkg/loader/loader.go @@ -72,7 +72,10 @@ func openFile(path string) (io.ReadCloser, bool, error) { func loadLocal(base *source, name string) (*source, bool, error) { // We want to keep all strings in / format, and only convert to platform specific when reading - filePath := path.Join(base.Path, name) + filePath := name + if !filepath.IsAbs(name) { + filePath = filepath.Join(base.Path, name) + } if s, err := fs.Stat(internal.FS, filepath.Clean(filePath)); err == nil && s.IsDir() { for _, def := range types.DefaultFiles {