2017-10-20 96 views
0

我正在从包含更多项目的GOPATH部署Google App Engine应用程序。出于某种原因,没有从我正在上传的应用程序引用的自动化库(github.com/mattn/go-sqlite3)正在编译,并且失败。gcloud app deploy试图编译不需要的文件,我可以排除部分树吗?

有没有办法从gcloud中排除不必要的代码树部分?我无法在gcloud的文档中找到有关如何执行此操作的任何内容。

Updating service [default]... 
.......failed. 
ERROR: (gcloud.app.deploy) Error Response: [9] Deployment contains files that cannot be compiled: Compile failed: 
2017/10/20 01:30:38 go-app-builder: build timing: 12×compile (2.234s total), 0×link (0s total) 
2017/10/20 01:30:38 go-app-builder: failed running compile: exit status 2 

github.com/mattn/go-sqlite3/sqlite3_go18.go:18: undefined: SQLiteConn 
github.com/mattn/go-sqlite3/sqlite3_go18.go:26: undefined: SQLiteConn 
github.com/mattn/go-sqlite3/sqlite3_go18.go:27: undefined: namedValue 
github.com/mattn/go-sqlite3/sqlite3_go18.go:29: undefined: namedValue 
github.com/mattn/go-sqlite3/sqlite3_go18.go:35: undefined: SQLiteConn 
github.com/mattn/go-sqlite3/sqlite3_go18.go:36: undefined: namedValue 
github.com/mattn/go-sqlite3/sqlite3_go18.go:44: undefined: SQLiteConn 
github.com/mattn/go-sqlite3/sqlite3_go18.go:49: undefined: SQLiteConn 
github.com/mattn/go-sqlite3/sqlite3_go18.go:54: undefined: SQLiteStmt 
github.com/mattn/go-sqlite3/sqlite3_go18.go:63: undefined: SQLiteStmt 
github.com/mattn/go-sqlite3/sqlite3_go18.go:36: too many errors 

这似乎最近变了,我没有改变我的应用程序需要这个库,和我的工作不改变任何其他代码的一个分支。我能想到的唯一的另一件事是,我做go get google.golang.org/appengine,因为如果自动售货机该图书馆不工作。但是,我无法在其源代码树中找到对sqlite3的任何引用。

$ gcloud --version 
Google Cloud SDK 175.0.0 
alpha 2017.10.09 
app-engine-go 
app-engine-python 1.9.61 
beta 2017.10.09 
bq 2.0.27 
cloud-datastore-emulator 1.2.1 
core 2017.10.09 
gsutil 4.27 

回答

相关问题