go-firebase-admin icon indicating copy to clipboard operation
go-firebase-admin copied to clipboard

cannot use fbFile (type "..projectDir/vendor/google.golang.org/api/option".ClientOption) as type "..ProjectDir/vendor/github.com/acoshift/go-firebase-admin/vendor/google.golang.org/api/option".ClientOption in argument to firebase.InitializeApp

Open wildan2711 opened this issue 8 years ago • 3 comments

cannot use fbFile (type "gitlab.com/dolan-in/dolan/vendor/google.golang.org/api/option".ClientOption) as type 
"gitlab.com/dolan-in/dolan/vendor/github.com/acoshift/go-firebase-admin/vendor/google.golang.org/api/option".ClientOption in argument to 
firebase.InitializeApp  "gitlab.com/dolan-in/dolan/vendor/google.golang.org/api/option".ClientOption 
does not implement "gitlab.com/dolan-in/dolan/vendor/github.com/acoshift/go-firebase-admin/vendor/google.golang.org/api/option".ClientOption (wrong type for Apply method)         
have Apply(*"gitlab.com/dolan-in/dolan/vendor/google.golang.org/api/internal".DialSettings)         
want Apply(*"gitlab.com/dolan-in/dolan/vendor/github.com/acoshift/go-firebase-admin/vendor/google.golang.org/api/internal".DialSettings) fbFile ClientOption

Probably an import error? Two other people in my team encountered this error too. Just recently upgraded to 0.0.6

wildan2711 avatar Sep 21 '17 15:09 wildan2711

Hi, right now it works when install via package manager ex. dep workaround is remove vendor/ folder after go get I don't know how library handle dependency, I'll investigate on this.

acoshift avatar Sep 21 '17 15:09 acoshift

Yep, we're using Glide for dependency management.

Okay, Thank you!

wildan2711 avatar Sep 21 '17 15:09 wildan2711

Where is vendor folder?

jobnte avatar May 22 '18 15:05 jobnte