We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e1bd2 commit 3f83c83Copy full SHA for 3f83c83
src/cmd/go/go_test.go
@@ -5061,6 +5061,11 @@ func TestExecBuildX(t *testing.T) {
5061
tg.tempDir("cache")
5062
tg.setenv("GOCACHE", tg.path("cache"))
5063
5064
+ // Before building our test main.go, ensure that an up-to-date copy of
5065
+ // runtime/cgo is present in the cache. If it isn't, the 'go build' step below
5066
+ // will fail with "can't open import". See golang.org/issue/29004.
5067
+ tg.run("build", "runtime/cgo")
5068
+
5069
tg.tempFile("main.go", `package main; import "C"; func main() { print("hello") }`)
5070
src := tg.path("main.go")
5071
obj := tg.path("main")
0 commit comments