git error when deploying Google App Engine Flexible with sample code
Deploy Hello World app For setup, follow this guidance here: https://cloud.google.com/appengine/docs/flexible/go/quickstart If we don't do these setup steps, an error exec: "gcc": executable file not found in $PATH may occur when running gcloud app deploy My environment: $ cat /etc/system-release CentOS Linux release 7.9.2009 (Core) $ git version git version 1.8.3.1 $ go version go version go1.15.14 linux/amd64 Download go sample Hello World app and try running it locally. $ git clone github.com/GoogleCloudPlatform/golang-samples $ cd golang-samples/appengine_flexible/helloworld # Run it locally $ go run *.go There was an error: fatal: git fetch-pack: expected shallow list go: cloud.google.com/go/bigtable@v1.4.0 requires google.golang.org/api@v0.28.0 requires honnef.co/go/tools@v0.0.1-2020.1.3 requires golang.org/x/mod@v0.0.0-20190513183733-4bf6d317e70e: invalid version: git fetch --unshallow -f origin in /xxx/go/pkg/mod/cache/vcs/13...