After upgrading google-cloud-sdk from 422.0.0 to 423.0.0, my Go standard environment project suddenly no longer builds (I've replaced references to my checkout directory with <path>
below, I get the same error no matter where it is checked out):
------------------------------------ STDERR ------------------------------------
2023/04/03 13:29:36 staging for go1.19
2023/04/03 13:29:36 GO111MODULE=off, so building with dependencies from GOPATH
main-package: web
2023/04/03 13:29:36 Staging app (GOPATH mode): failed analyzing <path>/src/web: no buildable Go source files in <path>/src/google.golang.org/api/transport/http/internal/propagation
GOPATH: <path>
--------------------------------------------------------------------------------
I deply with the following command (variables are set in the build script):
GOPATH=$GOPATH GO111MODULE=off gcloud app deploy --project $PROJECT --version $VERSION index.yaml app.yaml
I tried reading through the Google Cloud CLI release notes but couldn't find anything that seems to relate to any changes.
There are two .go files in the directory it claims "no buildable Go files" in, from the upstream project:
$ ls -1 <path>/src/google.golang.org/api/transport/http/internal/propagation
http.go
http_test.go