Skip to content

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

@hajimehoshi

Description

@hajimehoshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions