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: "cannot find module golang.org/x/sys/unix" when GOOS=android #30888

Closed
eliasnaur opened this issue Mar 17, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@eliasnaur
Copy link
Contributor

commented Mar 17, 2019

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 .

@gopherbot gopherbot added this to the Unreleased milestone Mar 17, 2019

@jayconrod jayconrod self-assigned this Mar 18, 2019

@jayconrod jayconrod modified the milestones: Unreleased, Go1.13 Mar 18, 2019

@jayconrod jayconrod changed the title x/benchmarks: "cannot find module golang.org/x/sys/unix" when GOOS=android cmd/go: "cannot find module golang.org/x/sys/unix" when GOOS=android Mar 19, 2019

@gopherbot

This comment has been minimized.

Copy link

commented Mar 19, 2019

Change https://golang.org/cl/168378 mentions this issue: cmd/go: recognize android suffix when constructing build list

@gopherbot gopherbot closed this in f07a99e Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.