Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: misc/cgo/test fails if GOROOT is under GOPATH #3337
On my machine, I keep all source files under ~/src. Setting GOPATH to ~ works well, except the most recent weekly fails its tests unless I unset GOPATH first. What steps will reproduce the problem? 1. export GOPATH=~ 2. export GOROOT=~/src/go 3. cd ~/src/go/src 4. ./all.bash What is the expected output? All tests pass What do you see instead? After many lines, # ../misc/cgo/test can't load package: ~/src/go/misc/cgo/test/callback.go:14:2: local import "./backdoor" in non-local package Which operating system are you using? Same results on both Mac OS 10.6 and Debian Stable Which revision are you using? (hg identify) 3cdba7b0650c weekly/weekly.2012-03-13
This issue was closed.