Skip to content

Commit 387477d

Browse files
committed
fix: explicitly check for absolute paths on Windows
1 parent 636aae3 commit 387477d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io"
77
"os"
88
"path/filepath"
9+
"runtime"
910
"slices"
1011
"strings"
1112

@@ -405,6 +406,10 @@ func (files lockfileAndConfigOrErrs) adjustExtraDatabases(
405406
}
406407

407408
func parseLockfilePathWithParseAs(lockfilePathWithParseAs string) (string, string) {
409+
if runtime.GOOS == "windows" && filepath.IsAbs(lockfilePathWithParseAs) {
410+
return "", lockfilePathWithParseAs
411+
}
412+
408413
if !strings.Contains(lockfilePathWithParseAs, ":") {
409414
return "", lockfilePathWithParseAs
410415
}

0 commit comments

Comments
 (0)