這是我的項(xiàng)目結(jié)構(gòu):這是我的模組文件:module github.com/bloodcompany/blood-microservices/stores/sync-stores-google-sheet-to-firestorego 1.16require ( cloud.google.com/go/firestore v1.6.1 // indirect cloud.google.com/go/kms v1.4.0 // indirect github.com/bloodcompany/blood-microservices/utils v1.0.0)replace ( github.com/bloodcompany/blood-microservices/models => ../../models github.com/bloodcompany/blood-microservices/utils => ../../utils)這是我在“function.go”文件中的導(dǎo)入:import ( "github.com/bloodcompany/blood-microservices/utils")問(wèn)題: 當(dāng)我將函數(shù)部署到服務(wù)器時(shí),終端出現(xiàn)以下錯(cuò)誤。你可以在我的項(xiàng)目結(jié)構(gòu)中看到,錯(cuò)誤中似乎缺少的包在 Vendor Tree 下已經(jīng)可用。但錯(cuò)誤仍然出現(xiàn)??赡艹隽耸裁磫?wèn)題?ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: src/stores/function.go:9:2: cannot find package "github.com/bloodcompany/blood-microservices/utils" in any of: /workspace/src/stores/vendor/github.com/bloodcompany/blood-microservices/utils (vendor tree) /layers/google.go.runtime/go/src/github.com/bloodcompany/blood-microservices/utils (from $GOROOT) /workspace/src/github.com/bloodcompany/blood-microservices/utils (from $GOPATH); Error ID: 2f5e35a0注意: 我的項(xiàng)目不在$GOPATH這個(gè)位置。這是一個(gè)問(wèn)題嗎?$GOPATH 位置是“C:\Users\thisa\go”,而項(xiàng)目在另一個(gè)位置。
- 1 回答
- 0 關(guān)注
- 106 瀏覽
添加回答
舉報(bào)
0/150
提交
取消