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
When trying to compile the dependencies of a package needed for testing it (go test -i),
the go tool chokes on the import "C" line.
NOTE: As a work-around, if the user creates an do-nothing package "C" in a
GOPATH or GOROOT directory, then the go tool will proceed to build the dependencies.
What steps will reproduce the problem?
1. Make a package / command that uses cgo
2. go test -i
What is the expected output?
No output to console, but $GOPATH/pkg/ should have dependent packages installed into it.
What do you see instead?
can't load package: C: package could not be found locally
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
darwin/x86 (Mac OS X 10.6.8)
Which revision are you using? (hg identify)
b9ae3df7a5e7 tip
Please provide any additional information below.
Attached is a simple test-case command foo with a dependency on a foo/bar sub-package.
Attachments:
The text was updated successfully, but these errors were encountered: