mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 18:27:37 +08:00
@ -187,7 +187,7 @@ func (t *Term) substitutePath(path string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func crossPlatformPath(path string) string {
|
func crossPlatformPath(path string) string {
|
||||||
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
return strings.ToLower(path)
|
return strings.ToLower(path)
|
||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
|
|||||||
@ -38,8 +38,9 @@ func platformCases() []tCase {
|
|||||||
{[]tRule{{"/tmp/path", "/new/path2"}}, "/TmP/path/file.go", "/TmP/path/file.go"},
|
{[]tRule{{"/tmp/path", "/new/path2"}}, "/TmP/path/file.go", "/TmP/path/file.go"},
|
||||||
}
|
}
|
||||||
casesDarwin := []tCase{
|
casesDarwin := []tCase{
|
||||||
// Should be case-insensitive
|
// Can be either case-sensitive or case-insensitive depending on
|
||||||
{[]tRule{{"/tmp/path", "/new/path2"}}, "/TmP/PaTh/file.go", "/new/path2/file.go"},
|
// filesystem settings, we always treat it as case-sensitive.
|
||||||
|
{[]tRule{{"/tmp/path", "/new/path2"}}, "/TmP/PaTh/file.go", "/TmP/PaTh/file.go"},
|
||||||
}
|
}
|
||||||
casesWindows := []tCase{
|
casesWindows := []tCase{
|
||||||
// Should not depend on separator at the end of rule path
|
// Should not depend on separator at the end of rule path
|
||||||
|
|||||||
Reference in New Issue
Block a user