googleapis / google-cloud-go

Google Cloud Client Libraries for Go.
https://cloud.google.com/go/docs/reference
Apache License 2.0
3.73k stars 1.28k forks source link

all: broken genbot CI build #6837

Closed quartzmo closed 1 year ago

quartzmo commented 1 year ago

The gapicgen/genbot build is currently broken (log) and may continue to encounter the type of error shown below until we have dropped support for older versions of Go (< 1.17 ?). Until then, we should consider including the go version flags suggested below in our builds as needed.

[cloud.google.com/go/accessapproval/apiv1](http://cloud.google.com/go/accessapproval/apiv1) imports

    [google.golang.org/grpc/codes](https://www.google.com/url?q=http://google.golang.org/grpc/codes&sa=D) tested by

    [google.golang.org/grpc/codes.test](https://www.google.com/url?q=http://google.golang.org/grpc/codes.test&sa=D) imports

    [google.golang.org/genproto/googleapis/rpc/code](https://www.google.com/url?q=http://google.golang.org/genproto/googleapis/rpc/code&sa=D) loaded from [google.golang.org/genproto@v0.0.0-20220920201722-2b89144ce006](https://www.google.com/url?q=http://google.golang.org/genproto@v0.0.0-20220920201722-2b89144ce006&sa=D),

    but go 1.16 would select v0.0.0-20220926220553-6981cbe3cfce

To upgrade to the versions selected by go 1.16:

    go mod tidy -go=1.16 && go mod tidy -go=1.17

If reproducibility with go 1.16 is not needed:

    go mod tidy -compat=1.17

For other options, see:

    [https://golang.org/doc/modules/pruning](https://www.google.com/url?q=https://golang.org/doc/modules/pruning&sa=D)

error generating gapics (may need to check logs for more errors): exit status 1

exit status 1
codyoss commented 1 year ago

I am going to close this out as we should be at 1.17 shortly.