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

x/mobile: gomobile init fails when checking sha256 for NDK (linux) #15202

Closed
uaalto opened this issue Apr 8, 2016 · 9 comments

Comments

Projects
None yet
6 participants
@uaalto
Copy link

commented Apr 8, 2016

  1. What version of Go are you using (go version)?
go version go1.6 linux/amd64
  1. What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/alvatar/code/lantern"
GORACE=""
GOROOT="/home/alvatar/code/go1.6.0"
GOTOOLDIR="/home/alvatar/code/go1.6.0/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
go install golang.org/x/mobile/cmd/gomobile
gomobile init 
  1. What did you expect to see?

Correct gomobile init run

  1. What did you see instead?
bin/gomobile: sha256 for "gomobile-ndk-r10e-linux-x86_64.tar.gz": bacfed664a7b69b1b693f246ea49a85f04f502bd1ae723351c5345ab5b2ba850, want 709d96f5234c224e4b72254fd2e196d0e1486b8d943e972ed98cf14e3ca7bdde

@bradfitz bradfitz added this to the Unreleased milestone Apr 9, 2016

@clsung

This comment has been minimized.

Copy link
Contributor

commented Apr 10, 2016

Maybe the gomobile repo should be upgraded, sha256 "709d96f5234c224e4b72254fd2e196d0e1486b8d943e972ed98cf14e3ca7bdde" is previous one.

See golang/mobile@74ee969#diff-5eee0baa37843d6875734b7ec91206a7

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Apr 11, 2016

Yes, please update the gomobile repo.
I hope that we can handle release better after the next ndk upgrade.

@myleshorton

This comment has been minimized.

Copy link

commented Apr 13, 2016

I'm experiencing the same issue @uaalto =).

@uaalto

This comment has been minimized.

Copy link
Author

commented Apr 13, 2016

Updating to Go 1.6.1 sha's change, but it is still incorrect:

gomobile: sha256 for "gomobile-ndk-r10e-darwin-x86_64.tar.gz": e8bff8a56f5688ec849a95a4e85130ce02eff5c2d54e361103777c396db8d308, want 9185a734b1b3d8dd29f3bc3c55cf03e397414e656345b7ed835879ee8eb76ebb

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Apr 14, 2016

@uaalto Please update the gomobile repo.

@uaalto

This comment has been minimized.

Copy link
Author

commented Apr 14, 2016

Thanks @hyangah . I'm actually installing it from scratch every time I try, so I'm confident that I have the latest version and that there are no leftovers.

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Apr 14, 2016

@uaalto the error message is from https://go.googlesource.com/mobile/+/master/cmd/gomobile/init.go#569 and it seems your gomobile command was built with version prior to golang/mobile@74ee969#diff-5eee0baa37843d6875734b7ec91206a7

What does 'gomobile version' command say?

@uaalto

This comment has been minimized.

Copy link
Author

commented Apr 25, 2016

It works now. We are using Docker with an external directory, so it was probably some stale data. I'll close it because it probably isn't Gomobile's issue.

@uaalto uaalto closed this Apr 25, 2016

@uaalto

This comment has been minimized.

Copy link
Author

commented Apr 25, 2016

Ps: thank you for your comments and help!

@golang golang locked and limited conversation to collaborators Apr 25, 2017

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