firebase / firebase-admin-go

Firebase Admin Go SDK
Apache License 2.0
1.12k stars 239 forks source link

Error when trying to install firebase-admin-go #510

Closed DaanvandeHaar closed 1 year ago

DaanvandeHaar commented 1 year ago

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

When trying to install firebase-admin-go i'm getting this error:

go get firebase.google.com/go
# cloud.google.com/go/storage
../../go/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1504:5: cannot use r.Condition.AgeInDays (type int64) as type *int64 in field value
../../go/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1592:5: cannot use rr.Condition.Age (type *int64) as type int64 in field value
google-oss-bot commented 1 year ago

I found a few problems with this issue:

vnddr commented 1 year ago

Found this error too. Reproduced it with go 1.17, 1.18 and 1.19

lahirumaramba commented 1 year ago

Hey @DaanvandeHaar , @vnddr, We updated the cloud.google.com/go/storage dependency in Firebase Admin Go v4.9.0 release. Could you try the new release and see if you are still facing this issue, please? Thank you.

lahirumaramba commented 1 year ago

I am closing this assuming the issue is now fixed with the dependency upgrade mentioned above. We can reopen later if needed. Thanks.