New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go build -race -n
escapes $WORK incorrectly
#37012
Comments
This may be fixed (or at least changed) by CL 210937. Please try |
go build -race -n
produces incorrect pathsgo build -race -n
escapes $WORK incorrectly
Actually, I think I see a related bug in |
Didn't actually see the bug, but I do see the symptom with a build from head. go/src/cmd/go/internal/work/action.go Line 250 in e751af1
The funky paths are probably coming from here: go/src/cmd/go/internal/work/exec.go Lines 2029 to 2032 in e751af1
|
Here is reason why we getting such paths: go/src/cmd/go/internal/work/exec.go Line 2127 in e751af1
We could instead use Output
Should i make PR? |
@GrigoriyMikhalkin, nice find! Please do send a PR for Go 1.15. |
Change https://golang.org/cl/219919 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
go build -race -n
produces no output in the latest release.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran
go build -race -n file.go
What did you expect to see? / What did you see instead?
The output from
go build -race -n file.go
seems slightly incorrect.Take the following line for example. I believe the tool ought to have printed
$WORK/b017/
instead of/usr/local/Cellar/go/1.13.5/libexec/src/runtime/race/$WORK/b017/
.I'm assuming that $WORK is a full path. It could also be that
$WORK
is a relative path from/usr/local/Cellar/go/1.13.5/libexec/src/runtime/race
. If that's the case, then the following lines would break, since$WORK
is a relative path that is now referenced from/usr/local/Cellar/go/1.13.5/libexec/src/runtime/race
instead of/usr/local/Cellar/go/1.13.5/libexec/src/runtime/race
:The text was updated successfully, but these errors were encountered: