go – How can deploy with gclouad app engine there are golang missing package-ThrowExceptions

Exception or error:

trying to deploy with gcloud app engine service but got Error type: BuildError.. locally app is building and started without an error.
missing package are describe in the code example.

my GOPATH is export GOPATH=/Users/xxx/Documents/projects/go-workspace. project folder is /Users/xxx/Documents/projects/go-workspace/my_project

Updating service [default]...failed.                                                                                                                           
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 28d0b69a-4c0a-426b-bc25-d39649de557e status: FAILURE.
Error ID: 9066CF5A.
Error type: BuildError.
Error message: 2019/09/03 16:56:19 Copying /workspace/_gopath/src/aepp-sdk-go to /tmp/staging/srv/gopath/src/aepp-sdk-go
2019/09/03 16:56:19 Copying /workspace/_gopath/src/aepp-token-migration-backend to /tmp/staging/srv/gopath/src/aepp-token-migration-backend
2019/09/03 16:56:19 Copying /workspace/_gopath/src/github.com to /tmp/staging/srv/gopath/src/github.com
2019/09/03 16:56:19 Copying /workspace/_gopath/src/go.mongodb.org to /tmp/staging/srv/gopath/src/go.mongodb.org
2019/09/03 16:56:19 Copying /workspace/_gopath/src/golang.org to /tmp/staging/srv/gopath/src/golang.org
2019/09/03 16:56:19 Copying /workspace/_gopath/src/gopkg.in to /tmp/staging/srv/gopath/src/gopkg.in
2019/09/03 16:56:19 Building from Go source in /tmp/staging/srv/gopath/src/aepp-token-migration-backend, with main package at aepp-token-migration-backend
2019/09/03 16:56:19 Building /tmp/staging/srv/gopath/src/aepp-token-migration-backend, saving to /tmp/staging/usr/local/bin/start
2019/09/03 16:56:21 Wrote build output to /builder/outputs/output
2019/09/03 16:56:21 Failed to build app: building app with command '[go build -o /tmp/staging/usr/local/bin/start aepp-token-migration-backend]', env '[PATH=/go/bin:/usr/local/go/bin:/builder/google-cloud-sdk/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=sdfdfgdfgg HOME=/builder/home BUILDER_OUTPUT=/builder/outputs DEBIAN_FRONTEND=noninteractive GOROOT=/usr/local/go/ GOPATH=/go GOPATH=/tmp/staging/srv/gopath]': err=exit status 1, out=srv/gopath/src/github.com/ethereum/go-ethereum/crypto/signature_cgo.go:27:2: cannot find package "github.com/ethereum/go-ethereum/crypto/secp256k1" in any of:
    /tmp/staging/srv/gopath/src/github.com/ethereum/go-ethereum/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1 (vendor tree)
    /usr/local/go/src/github.com/ethereum/go-ethereum/crypto/secp256k1 (from $GOROOT)
    /tmp/staging/srv/gopath/src/github.com/ethereum/go-ethereum/crypto/secp256k1 (from $GOPATH).
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *