cmd/go: "cannot find module golang.org/x/sys/unix" when GOOS=android #30888
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
From https://groups.google.com/forum/#!topic/golang-dev/IrYqwYuP7HE:
I'm baffled by the x/benchmarks error from the android builder:
go: finding golang.org/x/sys v0.0.0-20190312061237-fead79001313
build golang.org/x/benchmarks/build: cannot find module for path golang.org/x/sys/unix
(from https://build.golang.org/log/88f5b8146a7adf17c6414178eb9ca0c03a6fa719)
I can reproduce the error locally:
$ git clone https://go.googlesource.com/benchmarks
Cloning into 'benchmarks'...
remote: Total 249 (delta 82), reused 249 (delta 82)
Receiving objects: 100% (249/249), 481.19 KiB | 1.94 MiB/s, done.
Resolving deltas: 100% (82/82), done.
$ cd benchmarks/
$ go test ./...
go: downloading golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: extracting golang.org/x/sys v0.0.0-20190312061237-fead79001313
? golang.org/x/benchmarks/build [no test files]
? golang.org/x/benchmarks/driver [no test files]
? golang.org/x/benchmarks/garbage [no test files]
? golang.org/x/benchmarks/http [no test files]
? golang.org/x/benchmarks/json [no test files]
$ GOOS=android go test ./...
build golang.org/x/benchmarks/build: cannot find module for path golang.org/x/sys/unix
But I have no clue why golang.org/x/sys/unix is available for my host (GOOS=linux) but not for GOOS=android.
CC @jayconrod @bcmills .
The text was updated successfully, but these errors were encountered: