Go-micro: This problem persists when acquiring your dependencies。

Created on 2 Jan 2020  Â·  13Comments  Â·  Source: asim/go-micro

github.com/lucas-clemente/quic-go/internal/handshake

../../../pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/crypto_setup.go:433:40: not enough arguments in call to h.conn.GetSessionTicket
have ()
want ([]byte)

go.mod

Most helpful comment

export GO111MODULE=on

go get github.co/micro/go-micro

This is not solving the issue. Still getting it

 github.com/lucas-clemente/quic-go/internal/handshake
../../../../../pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/crypto_setup.go:433:40: not enough arguments in call to h.conn.GetSessionTicket
        have ()
        want ([]byte)

All 13 comments

Yes, I met the same problem that I go get go-micro.

Please use go modules and do go get without the use of -u

I tried to use go get ./... and i have the same problem (I have implemented go modules) but I could solved it. I modified a privacy project but I could not update the project, so, I removed the dependency from the go.mod file and then executed go get again and it worked.

Having the same problem also here

export GO111MODULE=on

go get github.co/micro/go-micro

If you have run go get -u or changed go mod you will have problems

Same here. Using goenv and go version is 1.13.5. Fresh install in Catalina.

GO111MODULE=on go get github.com/micro/micro
/usr/local/go/1.13.5/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/crypto_setup.go:433:40: not enough arguments in call to h.conn.GetSessionTicket
    have ()
    want ([]byte)

export GO111MODULE=on

go get github.co/micro/go-micro

This is not solving the issue. Still getting it

 github.com/lucas-clemente/quic-go/internal/handshake
../../../../../pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/crypto_setup.go:433:40: not enough arguments in call to h.conn.GetSessionTicket
        have ()
        want ([]byte)

From a completely fresh state (e.g. docker run --rm -it golang:1.13) I can't reproduce the issue, both the latest release and master are go gettable:

$ docker run --rm -it golang:1.13
root@ffc72439b087:/go# export GO111MODULE=on
root@ffc72439b087:/go# go get github.com/micro/go-micro # gets 1.18.0
root@ffc72439b087:/go# go get github.com/micro/go-micro@master # gets master

It's likely at some point in your project you've either done go get -u or pulled in another package with a clashing dependency, which is inside your go.mod/sum now, leading to your error.

It's likely at some point in your project you've either done go get -u or pulled in another package with a clashing dependency, which is inside your go.mod/sum now, leading to your error.

@jakexks yes. But how do I resolve the issue now?

If it was just a mistake and not a clashing dependency you can delete go.sum, edit go.mod like this previous comment and try again. I can't troubleshoot your code for you!

just following the way.
go get with <-u> will cause conflict.

Thanks @jakexks , that worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xmlking picture xmlking  Â·  7Comments

jnvillar picture jnvillar  Â·  9Comments

Wintereise picture Wintereise  Â·  6Comments

djensen47 picture djensen47  Â·  8Comments

godcong picture godcong  Â·  5Comments