Skip to content
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: TestExecutableGOROOT fails if goroot is a symbolic link #20365

Closed
aarzilli opened this issue May 15, 2017 · 2 comments
Closed

cmd/go: TestExecutableGOROOT fails if goroot is a symbolic link #20365

aarzilli opened this issue May 15, 2017 · 2 comments

Comments

@aarzilli
Copy link
Contributor

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +1d44c4e Mon May 15 06:16:19 2017 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/a/n/go/"
GORACE=""
GOROOT="/usr/local/go-tip"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build278802526=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?

Ran ./all.bash in /usr/local/go-tip/src/ with /usr/local/go/ being a symbolic link to /usr/local/go-tip/.

What did you expect to see?

Everything passes.

What did you see instead?

--- FAIL: TestExecutableGOROOT (0.03s)
	go_test.go:3993: /tmp/gotest592236170/newgoroot/bin/go env GOROOT = "/usr/local/go", want "/usr/local/go-tip"
@gopherbot
Copy link

CL https://golang.org/cl/43550 mentions this issue.

@ianlancetaylor
Copy link
Contributor

@aarzilli Can you see if https://golang.org/cl/43550 fixes the problem? Thanks.

@golang golang locked and limited conversation to collaborators May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants