From d8b1ea856423ce9f8b8b8e98f039a24c0ea24b79 Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Tue, 6 Aug 2024 13:34:30 -0700 Subject: [PATCH] fix: windows absolute path logic --- pkg/loader/loader.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/loader/loader.go b/pkg/loader/loader.go index 3d2ae8ed..1dfaa0e2 100644 --- a/pkg/loader/loader.go +++ b/pkg/loader/loader.go @@ -68,10 +68,8 @@ 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 - // This is why we use path instead of filepath. filePath := name - if !path.IsAbs(name) { + if !filepath.IsAbs(name) { filePath = path.Join(base.Path, name) }