Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile/cmd/gomobile: darwin rename issue #14503
Hello guys, I've updated gomobile and gobind today with go get but unfortunately I'm getting this error while trying to initialize it:
➜ ~ gomobile init
Here it is the version:
Deleting $GOPATH/pkg/gomobile/dl directory and run gomobile init again may fix the problem.
@diegostamigni can you do me a favor before deleting the directory?
If you find gomobile-ndk-r10e-darwin-x86_64.tar.gz file (or similar) in the directory, let me know what's in the file (tmp.txt from the following command output)
As you suggested, deleting the $GOPATH/pkg/gomobile/dl fixes the issue.
@DavidYangNO1 Please attach gomobile init -v -x output.
Also, can you check if you can download https://dl.google.com/go/mobile/gomobile-ndk-r10e-darwin-x86_64.tar.gz (using wget or with your browser)?
The gomobile init command will use files cached in a 'dl' folder in lieu of downloading a new file from scratch. If a user of gomobile does not upgrade for a substantial amount of time, the cached files will be out of date and possibly cause the init command to fail because they are missing something the init command now expects. The init command has a list of expectad sha256 message digests of files it downloads, which can be utilized to check a file that exists in the 'dl' folder before proceeeding to utilize it to continue with the init process. This fixes the problem cited in issue #14503, which is not platform-specific: golang/go#14503 Some files detailing debugging of the original problem and asserting a solution are at the following URL: https://gist.github.com/aoeu/657386c35131b71893153efe34ec07b4
I encountered the same error on one of my systems, and there was enough information here to attempt debugging. I don't believe this problem is unique to Darwin. It appears that
I realize this behavior of
If it helps, I documented my debugging session in a forked repository (that Github apparently automatically referenced above) and in https://gist.github.com/aoeu/657386c35131b71893153efe34ec07b4 . Also, if there's a change that could be advised and no one else is already working on it, I can volunteer an attempt at implementing it. (I'm more accustomed to using Gerrit than Github.)