-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/go: go install -x -n is not empty even if nothing needs building #24396
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
Comments
I'll look into this, but couldn't you use |
That option didn't occur to me. However, it doesn't seem to work in my case:
I can manually go install the dependency:
But as soon as I blow away my $GOPATH/pkg dir, the problem reappears:
Edit: For the offending package:
Did I miss something? |
I don't think you missed anything. Filed #24558. |
Change https://golang.org/cl/102619 mentions this issue: |
Reopening for 1.10.1, since it affects mobile builds. |
No description provided. |
Change https://golang.org/cl/102794 mentions this issue: |
This doesn't fix the gomobile problem, so not important for 1.10.1, so closing again. |
What version of Go are you using (
go version
)?go version devel +fdf5aaf555 Mon Mar 12 15:05:53 2018 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/home/elias/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/elias/dev/go"
GORACE=""
GOROOT="/home/elias/dev/go-tip"
GOTMPDIR=""
GOTOOLDIR="/home/elias/dev/go-tip/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-build596110402=/tmp/go-build -gno-record-gcc-switches"
What did you do?
What did you expect to see?
Nothing output from the second command
What did you see instead?
rm -r $WORK/b001/
This is the root cause for #24389. gomobile version uses go install -x -n to determine if the gomobile binary is up to date by checking that its output is empty.
The text was updated successfully, but these errors were encountered: