Skip to content

Commit d8b1ea8

Browse files
committed
fix: windows absolute path logic
1 parent c378de2 commit d8b1ea8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: pkg/loader/loader.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ func openFile(path string) (io.ReadCloser, bool, error) {
6868
}
6969

7070
func loadLocal(base *source, name string) (*source, bool, error) {
71-
// We want to keep all strings in / format, and only convert to platform specific when reading
72-
// This is why we use path instead of filepath.
7371
filePath := name
74-
if !path.IsAbs(name) {
72+
if !filepath.IsAbs(name) {
7573
filePath = path.Join(base.Path, name)
7674
}
7775

0 commit comments

Comments
 (0)