You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My GOROOT is /User/pjw/go. I have a file /User/pjw/gostuff/src/linalg/linalg.go.
In /User/pjw/gostuff I execute go build -x linalg. The second line of the output script
is
cd $GOROOTstuff/src/linalg
Of course $GOROOTstuff is not defined.
The problem is at (or near) line 892 of cmd/go/build.go in fmtcmd(), where it blindly
changes the /User/pjw/go prefix of /User/pjw/gostuff/src/linalg into $GOROOT.
(Maybe the right fix is to use ${GOROOT}?}
The text was updated successfully, but these errors were encountered:
There's a second problem in this area that is harder to solve. go test -x doesn't
produce the script command to remake _testmain.go. But this can probably be worked
around by keeping the work directory as long as everything else is valid script.
The text was updated successfully, but these errors were encountered: