Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I originally posted this on stackoverflow: https://stackoverflow.com/questions/54410963/error-when-trying-to-deploy-google-cloud-function-in-go-1-11-using-go-modules
I am having issues deploying a Google cloud function in Go 1.11 using Go modules. I have the following code structure in my
the load/go.mod looks like the following:
When I try to deploy the function using the command
gcloud functions deploy load-data --entry-point GCSNewFileTrigger --runtime go111 --trigger-resource new_data --trigger-event google.storage.object.finalize
I get the following error:
Thank you for filing this issue!
Modules are preferred by the builder over vendor. If there is a
The solution is to vendor and not upload the go.mod/go.sum files. When using
I'm going to close this issue as this repo is for hosting sample code, and is only watched by engineers working on those samples. Thank you for bringing this up!