With GORACE set, in path like D:\<fullpath> only "D" can stripped and
what remains is :\<fullpath>
":" and later characters in GORACE are ignored.
D:\sources\gopath\src\learn>go run -race race.go
WARNING: DATA RACE
Read by goroutine 4:
Previous write by goroutine 1:
Goroutine 4 (running) created at:
Goroutine 1 (running) created at:
Found 1 data race(s)
exit status 66
The text was updated successfully, but these errors were encountered:
Unfortunately, long time ago somebody decided that ':' is a good delimiter for
parameters, so "strip_path_prefix=c:\foo" becomes just "strip_path_prefix=c", and you
should see that it strips "c" from paths.
Fortunately, the string does not need to be a prefix, so instead of
"strip_path_prefix=c:\foo\bar\", you can set "strip_path_prefix=foo\bar\", and it will
have the same effect.