I am trying to deploy to google cloud using deploy command and my code refers local package using the github url. I getting below when deploying using gcloud deploy command. So in this example. My endpoints package refers to local package price using the full git url. What am I missing here ?
package endpoints
import (
"encoding/json"
"fmt"
"github.com/piscean/pricing/price"
"net/http"
)
func LawnPricing(w http.ResponseWriter, r *http.Request) {
m, err := price.Pricing()
c, err := json.Marshal(m)
w.Write(c)
r.Body.Close()
}
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: /tmp/sgb/gopath/src/serverlessapp/vendor/endpoints/pricing.go:6:2: cannot find package "github.com/piscean/pricing/price" in any of: /tmp/sgb/gopath/src/serverlessapp/vendor/github.com/piscean/pricing/price (vendor tree) /go/src/github.com/piscean/pricing/price (from $GOROOT) /tmp/sgb/gopath/src/github.com/piscean/pricing/price (from $GOPATH) /tmp/sgb/gopath/src/serverlessapp/vendor/endpoints/zipcode.go:5:2: cannot find package "github.com/piscean/pricing/zip" in any of: /tmp/sgb/gopath/src/serverlessapp/vendor/github.com/piscean/pricing/zip (vendor tree) /go/src/github.com/piscean/pricing/zip (from $GOROOT) /tmp/sgb/gopath/src/github.com/piscean/pricing/zip (from $GOPATH)