Skip to content

Commit

Permalink
fix #2422: use original case for watch mode logs
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 30, 2022
1 parent 19429aa commit 40ef633
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/fs/fs_real.go
Expand Up @@ -485,13 +485,13 @@ func (fs *realFS) WatchData() WatchData {
}
} else {
// Check individual entries
isPresent := make(map[string]bool, len(names))
lookup := make(map[string]string, len(names))
for _, name := range names {
isPresent[strings.ToLower(name)] = true
lookup[strings.ToLower(name)] = name
}
for name, wasPresent := range data.accessedEntries.wasPresent {
if wasPresent != isPresent[name] {
return fs.Join(path, name)
if originalName, isPresent := lookup[name]; wasPresent != isPresent {
return fs.Join(path, originalName)
}
}
}
Expand Down

0 comments on commit 40ef633

Please sign in to comment.