bigquery: wrong google.golang.org/api version causes any build to fail since version v1.57.0 #8946
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
bigquery
Environment
A simple go app
Code
go.mod
Expected behavior
Build should pass and project should be compiled
Actual behavior
The bigquery itself can't be compiled with the bellow errors:
cloud.google.com/go/bigquery
../../go/pkg/mod/cloud.google.com/go/[email protected]/dataset.go:249:6: ds.ExternalDatasetReference undefined (type *"google.golang.org/api/bigquery/v2".Dataset has no field or method ExternalDatasetReference)
../../go/pkg/mod/cloud.google.com/go/[email protected]/dataset.go:316:62: d.ExternalDatasetReference undefined (type *"google.golang.org/api/bigquery/v2".Dataset has no field or method ExternalDatasetReference)
../../go/pkg/mod/cloud.google.com/go/[email protected]/dataset.go:409:6: ds.ExternalDatasetReference undefined (type *"google.golang.org/api/bigquery/v2".Dataset has no field or method ExternalDatasetReference)
../../go/pkg
/mod/cloud.google.com/go/[email protected]/dataset.go:964:42: undefined: bigquery.ExternalDatasetReference
../../go/pkg/mod/cloud.google.com/go/[email protected]/dataset.go:974:49: undefined: bigquery.ExternalDatasetReference
../../go/pkg/mod/cloud.google.com/go/[email protected]/dataset.go:978:13: undefined: bigquery.ExternalDatasetReference
../../go/pkg/mod/cloud.google.com/go/[email protected]/query.go:491:12: qRequest.JobCreationMode undefined (type *"google.golang.org/api/bigquery/v2".QueryRequest has no field or method JobCreationMode)
Seems because a wrong indirect dependency
google.golang.org/api v0.134.0 // indirect
Looks related to this change 343cea8
the version was downgraded from 0.145.0 to 0.134.0
too much to incompatible version.
The text was updated successfully, but these errors were encountered: