gocache
gocache copied to clipboard
Unable to install v2 using go get
I tried go get -u github.com/eko/gocache/v2/cache
And got
# github.com/XiaoMi/pegasus-go-client/idl/base
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\blob.go:18:31: not enough arguments in call to iprot.ReadBinary
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\blob.go:27:26: not enough arguments in call to oprot.WriteBinary
have ([]byte)
want (context.Context, []byte)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\error_code.go:105:34: not enough arguments in call to iprot.ReadString
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\error_code.go:110:26: not enough arguments in call to oprot.WriteString
have (string)
want (context.Context, string)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\gpid.go:18:25: not enough arguments in call to iprot.ReadI64
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\gpid.go:30:23: not enough arguments in call to oprot.WriteI64
have (int64)
want (context.Context, int64)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\rpc_address.go:26:31: not enough arguments in call to iprot.ReadI64
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\base\rpc_address.go:35:23: not enough arguments in call to oprot.WriteI64
have (int64)
want (context.Context, int64)
# github.com/XiaoMi/pegasus-go-client/idl/cmd
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:42:36: not enough arguments in call to iprot.ReadStructBegin
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:47:55: not enough arguments in call to iprot.ReadFieldBegin
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:61:25: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:80:31: not enough arguments in call to iprot.ReadFieldEnd
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:84:31: not enough arguments in call to iprot.ReadStructEnd
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:91:31: not enough arguments in call to iprot.ReadString
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:100:37: not enough arguments in call to iprot.ReadListBegin
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:108:32: not enough arguments in call to iprot.ReadString
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:115:29: not enough arguments in call to iprot.ReadListEnd
have ()
want (context.Context)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:122:34: not enough arguments in call to oprot.WriteStructBegin
have (string)
want (context.Context, string)
..\..\go\pkg\mod\github.com\!xiao!mi\[email protected]\idl\cmd\cmd.go:122:34: too many errors
Version 1.2 also does not work, with the same problem. OS: Windows 11 64 bit Golang: Version 1.17 Any help is appreciated. Thank you.
Running go mod tidy solved to me ^
I also get the same on a go build for my application, a go mod tidy did not fix this for me... golang version 1.17.9
issue found, there is a newer version of github.com/pegasus-kv/thrift but its not used by github.com!xiao!mi\pegasus-go-client yet, to fix add replace github.com/pegasus-kv/thrift => github.com/pegasus-kv/thrift v0.13.0 // indirect to your go mod file
issue found, there is a newer version of github.com/pegasus-kv/thrift but its not used by github.com!xiao!mi\pegasus-go-client yet, to fix add
replace github.com/pegasus-kv/thrift => github.com/pegasus-kv/thrift v0.13.0 // indirectto your go mod file
This worked for me. Actually allowed me to build. Thanks for this.
Hello, the pegasus store is now in a separated Go module so this should be fixed in case you only use the Gocache library (by importing github.com/eko/gocache/v4/lib).
I close this issue for now but feel free to reopen if you still have any issue with this new v4.0.0 release.