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/cmd/gomobile: test failures with missing go.sum entry #44162

Closed
hajimehoshi opened this issue Feb 8, 2021 · 1 comment
Closed

x/mobile/cmd/gomobile: test failures with missing go.sum entry #44162

hajimehoshi opened this issue Feb 8, 2021 · 1 comment
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hajimehoshi
Copy link
Member

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

$ go version
go version go1.16rc1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hajimehoshi/Library/Caches/go-build"
GOENV="/Users/hajimehoshi/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/hajimehoshi/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/hajimehoshi/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/hajimehoshi/sdk/go1.16rc1"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/hajimehoshi/sdk/go1.16rc1/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16rc1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/hajimehoshi/go-x-mobile/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/go-build3809827237=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Run go1.16rc1 test ./cmd/gomobile/ -run=TestBindWithGoModules

What did you expect to see?

The tests pass

What did you see instead?

--- FAIL: TestBindWithGoModules (14.99s)                                                                                                                                                                                                      
    --- FAIL: TestBindWithGoModules/android (8.41s)                                                                                                                                                                                           
        --- FAIL: TestBindWithGoModules/android/Absolute_Path (4.32s)                                                                                                                                                                         
            bind_test.go:319: gomobile bind failed: exit status 1                                                                                                                                                                             
                /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-test379515779/gomobile: go build -buildmode=c-shared -o=/var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-work-013030153/android/src/main/jniLibs/armeabi-v7
a/libgojni.so ./gobind failed: exit status 1                                                                                                                                                                                                  
                go: github.com/BurntSushi/xgb@v0.0.0-20160522181843-27f122750802: missing go.sum entry; to add it:                                                                                                                            
                        go mod download github.com/BurntSushi/xgb                                                                                                                                                                             
                                                                                                                                                                                                                                              
        --- FAIL: TestBindWithGoModules/android/Relative_Path (4.09s)                                                                                                                                                                         
            bind_test.go:319: gomobile bind failed: exit status 1                                                                                                                                                                             
                /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-test379515779/gomobile: go build -buildmode=c-shared -o=/var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-work-585427862/android/src/main/jniLibs/armeabi-v7
a/libgojni.so ./gobind failed: exit status 1                                                                                                                                                                                                  
                go: github.com/BurntSushi/xgb@v0.0.0-20160522181843-27f122750802: missing go.sum entry; to add it:                                                                                                                            
                        go mod download github.com/BurntSushi/xgb                                                                                                                                                                             
                                                                                                                                                                                                                                              
    --- FAIL: TestBindWithGoModules/ios (5.60s)                                                                                                                                                                                               
        --- FAIL: TestBindWithGoModules/ios/Absolute_Path (2.03s)                                                                                                                                                                             
            bind_test.go:319: gomobile bind failed: exit status 1                                                                                                                                                                             
                /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-test379515779/gomobile: darwin-arm64: go build -tags ios -buildmode=c-archive -o /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-work-283470702/Cgopkg-arm64.a ./gobind failed: exit status 1
                go: github.com/BurntSushi/xgb@v0.0.0-20160522181843-27f122750802: missing go.sum entry; to add it:
                        go mod download github.com/BurntSushi/xgb
                 
        --- FAIL: TestBindWithGoModules/ios/Relative_Path (3.47s)
            bind_test.go:319: gomobile bind failed: exit status 1
                /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-test379515779/gomobile: darwin-arm64: go build -tags ios -buildmode=c-archive -o /var/folders/60/khbk2xqn1c5bml1byjn89dwc0000gn/T/gomobile-work-202799803/Cgopkg-arm64.a ./gobind failed: exit status 1
                go: github.com/BurntSushi/xgb@v0.0.0-20160522181843-27f122750802: missing go.sum entry; to add it:
                        go mod download github.com/BurntSushi/xgb
                 
FAIL
FAIL    golang.org/x/mobile/cmd/gomobile        15.168s
FAIL

CC @hyangah @thanm

@hajimehoshi hajimehoshi added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 8, 2021
@hajimehoshi hajimehoshi added this to the Unplanned milestone Feb 8, 2021
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Feb 8, 2021
@gopherbot
Copy link

Change https://golang.org/cl/290409 mentions this issue: cmd/gomobile: create go.sum at the temporary directory

imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
As of Go1.16, `go build` fails if go.sum does not exist. This change
fixes this issue by forcing to create go.sum by calling `go mod tidy`.

Closes golang/go#44162

Change-Id: Ibba738503d1a58c6533b2427dd4efa6954b8eaa3
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/290409
Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com>
Trust: Than McIntosh <thanm@google.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
As of Go1.16, `go build` fails if go.sum does not exist. This change
fixes this issue by forcing to create go.sum by calling `go mod tidy`.

Closes golang/go#44162

Change-Id: Ibba738503d1a58c6533b2427dd4efa6954b8eaa3
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/290409
Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com>
Trust: Than McIntosh <thanm@google.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
@golang golang locked and limited conversation to collaborators Feb 8, 2022
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 NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants