firebase / firebase-admin-go

Firebase Admin Go SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when trying to install firebase-admin-go

DaanvandeHaar opened this issue · comments

[REQUIRED] Step 2: Describe your environment

  • Operating System version: MacOS Catalina 10.15.7
  • Firebase SDK version: Latest
  • Library version: Latest
  • Firebase Product: _____

[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

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

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

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.

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