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

이 보인다

내가이 라이브러리를 필요로 내 응용 프로그램을 변경하지 않은, 최근에 변경된 것으로, 나는 다른 코드를 변경하지 않는 지점에 일하고 있습니다. 내가 생각할 수있는 유일한 다른 점은 vend32가 해당 라이브러리가 작동하지 않기 때문에 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 

답변