2017-10-20 95 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 

回答

相關問題