尝试使用gcloud app engine
服务进行部署,但获得了Error type: BuildError.
。本地应用正在构建并启动,没有错误。
缺少的包在代码示例中描述。
我的GOPATH是export GOPATH=/Users/xxx/Documents/projects/go-workspace
。项目文件夹为/ 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).