golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 (release-branch.go1.12)

This commit is contained in:
Jordan Liggitt
2019-04-06 11:11:39 -04:00
parent 97c130b056
commit 389f76235c
48 changed files with 57 additions and 56 deletions

View File

@@ -19,6 +19,7 @@ import (
"log"
"os"
"path/filepath"
"strings"
"sync"
"golang.org/x/tools/go/gcexportdata"
@@ -838,7 +839,7 @@ func sameFile(x, y string) bool {
// overlay case implies x==y.)
return true
}
if filepath.Base(x) == filepath.Base(y) { // (optimisation)
if strings.EqualFold(filepath.Base(x), filepath.Base(y)) { // (optimisation)
if xi, err := os.Stat(x); err == nil {
if yi, err := os.Stat(y); err == nil {
return os.SameFile(xi, yi)