pkg/ast: print full file name in errors

Print full names so that github annotations work.
I.e. sys/linux/sys.txt instead of just sys.txt.
This commit is contained in:
Dmitry Vyukov 2020-05-17 08:59:00 +02:00
parent 2d4efabd02
commit 554f8f39c5

View File

@ -67,7 +67,7 @@ func ParseGlob(glob string, errorHandler ErrorHandler) *Description {
errorHandler(Pos{}, fmt.Sprintf("failed to read input file: %v", err))
return nil
}
desc1 := Parse(data, filepath.Base(f), errorHandler)
desc1 := Parse(data, f, errorHandler)
if desc1 == nil {
desc = nil
}