From 4fd8e8a2ad24f48e48f50c65368488c1ea48046b Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Tue, 6 Aug 2024 15:28:08 -0700 Subject: [PATCH] fix: add comment back in correct place, right above the place we mutate path Signed-off-by: Taylor Price --- pkg/loader/loader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/loader/loader.go b/pkg/loader/loader.go index 1dfaa0e2..80342f2b 100644 --- a/pkg/loader/loader.go +++ b/pkg/loader/loader.go @@ -70,6 +70,8 @@ func openFile(path string) (io.ReadCloser, bool, error) { func loadLocal(base *source, name string) (*source, bool, error) { filePath := name if !filepath.IsAbs(name) { + // 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 = path.Join(base.Path, name) }