GetUniverseDomain() undefind bug
Closed this issue · 1 comments
dongbin-bear commented
Bug Description
I found this error when I use NewDial() to make new connection with mysql.
So, I downgraded this package’s version from v1.8.0 to v1.7.0 and there is no errors.
I checked there is no GetUniverseDomain() in v1.7.0
Example code (or command)
No response
Stacktrace
external/com_github_google_cloudsqlconn/dialer.go:158:16: c.GetUniverseDomain undefined (type *google.Credentials has no field or method GetUniverseDomain)
external/com_github_google_cloudsqlconn/options.go:91:16: c.GetUniverseDomain undefined (type *google.Credentials has no field or method GetUniverseDomain)
external/com_github_google_cloudsqlconn/options.go:200:50: undefined: apiopt.WithUniverseDomain
Steps to reproduce?
- When I use NewDial function.
Environment
- OS type and version: ubuntu22.04
- Go version: 1.22.0
- Cloud SQL Go Connector version: 1.8.0
Additional Details
No response
enocom commented
Are you building the Go Connector in a mono repo?
Make sure you're building against google.golang.org/api v0.169.0 (which is what this project requires).