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 · 2 comments
Closed

cmd/go: "cannot find module golang.org/x/sys/unix" when GOOS=android #30888

eliasnaur opened this issue Mar 17, 2019 · 2 comments
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@eliasnaur
Copy link
Contributor

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 added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go modules labels Mar 18, 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
@jayconrod jayconrod added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Mar 19, 2019
@gopherbot
Copy link

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

@gopherbot
Copy link

Change https://golang.org/cl/179817 mentions this issue: cmd/go: recognise illumos suffix when constructing build list

@golang golang locked and limited conversation to collaborators May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge GoCommand cmd/go modules NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants