Skip to content

x/mobile: gomobile version unknown: binary is out of date, re-install it #24389

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

Closed
udhos opened this issue Mar 14, 2018 · 6 comments
Closed

x/mobile: gomobile version unknown: binary is out of date, re-install it #24389

udhos opened this issue Mar 14, 2018 · 6 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Milestone

Comments

@udhos
Copy link

udhos commented Mar 14, 2018

What version of Go are you using (go version)?

go version go1.10 linux/amd64

Does this issue reproduce with the latest release?

YES

What operating system and processor architecture are you using (go env)?

lab@ubu1:~$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/lab/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/lab/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build147874781=/tmp/go-build -gno-record-gcc-switches"

What did you do?

lab@ubu1:~$ go get golang.org/x/mobile/cmd/gomobile
lab@ubu1:~$ gomobile init
lab@ubu1:~$ gomobile version
gomobile version unknown: binary is out of date, re-install it
lab@ubu1:~$

What did you expect to see?

gomobile version should report its version.

What did you see instead?

gomobile version unknown: binary is out of date, re-install it

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/102619 mentions this issue: cmd/go: with -x, don't report removing a non-existent objdir

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/102794 mentions this issue: [release-branch.go1.10] cmd/go: with -x, don't report removing a non-existent objdir

@eliasnaur eliasnaur reopened this Mar 28, 2018
@eliasnaur
Copy link
Contributor

Reopened because CL 102794 didn't fix this issue as I expected. I'm sorry to have jumped the gun.

@TechComSpot
Copy link

Hi.
Have same issue.
Will anybody fix that?

@eliasnaur
Copy link
Contributor

This issue is blocked on #24558. I don't know when a resolution to that issue will happen.

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/108055 mentions this issue: cmd/gomobile: use go list -f {{.Stale}} to determine staleness

@golang golang locked and limited conversation to collaborators Apr 25, 2019
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
With CL 107957, the appropriate way to check that the gomobile
binary is up to date is by using go list -f {{.Stale}}. Use that
instead of go install -x -n.

Fixes golang/go#24389

Change-Id: I93a4428b048f0be9463c61928673886445dce3ed
Reviewed-on: https://go-review.googlesource.com/108055
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Sun Shine <mizommz89@gmail.com>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
With CL 107957, the appropriate way to check that the gomobile
binary is up to date is by using go list -f {{.Stale}}. Use that
instead of go install -x -n.

Fixes golang/go#24389

Change-Id: I93a4428b048f0be9463c61928673886445dce3ed
Reviewed-on: https://go-review.googlesource.com/108055
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Sun Shine <mizommz89@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

4 participants