redis icon indicating copy to clipboard operation
redis copied to clipboard

error in go get or go build

Open iiaiiappa opened this issue 6 years ago • 4 comments

error in go get or go build go get -u -v gopkg.in/go-oauth2/redis.v3

# gopkg.in/go-oauth2/redis.v3 ..\..\gopath\pkg\mod\gopkg.in\go-oauth2\[email protected]\options.go:79:3: cannot use o.Dialer (type func(context.Context, string, string) (net.Conn, error)) as type func() (net.Conn, error) in field value Related to this issue #7 error building go-oauth2 redis

Could anyone help fix this? Thank you very much and have a good day!

iiaiiappa avatar Sep 05 '19 21:09 iiaiiappa

This bug has been fixed before, you can try it again.

LyricTian avatar Sep 06 '19 00:09 LyricTian

I'm having trouble too! What's up with this?

fr3fou avatar Sep 10 '19 09:09 fr3fou

The bug is still not fixed. Quick fix is: comment out the line 79 at: <your gopath>\pkg\mod\gopkg.in\go-oauth2\[email protected]\options.go

//Dialer: o.Dialer,

Not sure what dialer is for.

iiaiiappa avatar Sep 10 '19 10:09 iiaiiappa

Should I fork it?

fr3fou avatar Sep 10 '19 10:09 fr3fou