qdeconinck / mp-quic

Please read https://multipath-quic.org/2017/12/09/artifacts-available.html to figure out how to setup the code.
MIT License
176 stars 71 forks source link

"go get -t -u ./..." doesn't work well #28

Open elhachi opened 2 years ago

elhachi commented 2 years ago

Hello everyone, I have an issue when running the "go get -t -u ./..." command to download dependency packages for mpquic. I flowed this tutorial " https://multipath-quic.org/2017/12/09/artifacts-available.html", using go1.17.5 instead of go1.9, and I got the following error:

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

internal/crypto/key_derivation.go:47:60: cs.KeyLen undefined (type mint.CipherSuiteParams has no field or method KeyLen) internal/crypto/key_derivation.go:48:58: cs.IvLen undefined (type mint.CipherSuiteParams has no field or method IvLen)

I tried to reset the mint repo, as it is mentioned in the tutorial, but it didn't solve the problem.

ArthurCChen commented 2 years ago

I also came across problems when "go get -t -u ./...", logs are below:

go: downloading github.com/onsi/gomega v1.13.0 example.com/m/v2 imports github.com/lucas-clemente/quic-go/ackhandler: cannot find module providing package github.com/lucas-clemente/quic-go/ackhandler example.com/m/v2 imports github.com/lucas-clemente/quic-go/congestion: cannot find module providing package github.com/lucas-clemente/quic-go/congestion example.com/m/v2 imports github.com/lucas-clemente/quic-go/internal/crypto: cannot find module providing package github.com/lucas-clemente/quic-go/internal/crypto example.com/m/v2 imports github.com/lucas-clemente/quic-go/qerr: cannot find module providing package github.com/lucas-clemente/quic-go/qerr example.com/m/v2/example imports github.com/lucas-clemente/quic-go/h2quic: cannot find module providing package github.com/lucas-clemente/quic-go/h2quic example.com/m/v2 tested by example.com/m/v2.test imports github.com/lucas-clemente/quic-go/internal/mocks/mocks_fc: cannot find module providing package github.com/lucas-clemente/quic-go/internal/mocks/mocks_fc example.com/m/v2/benchmark tested by example.com/m/v2/benchmark.test imports github.com/lucas-clemente/quic-go/integrationtests/tools/testlog: cannot find module providing package github.com/lucas-clemente/quic-go/integrationtests/tools/testlog example.com/m/v2/integrationtests/chrome tested by example.com/m/v2/integrationtests/chrome.test imports github.com/lucas-clemente/quic-go/integrationtests/tools/testserver: cannot find module providing package github.com/lucas-clemente/quic-go/integrationtests/tools/testserver

Did you meet the same problem?

ArthurCChen commented 2 years ago

@elhachi your question might be solved by following commands: cd ~/gopath/go_demo/src/github.com/bifurcation/mint git reset --hard a6080d464fb57a9330c2124ffb62f3c233e3400e cd ~/gopath/go_demo/src/github.com/lucas-clemente/quic-go go build

elhachi commented 2 years ago

I also came across problems when "go get -t -u ./...", logs are below:

go: downloading github.com/onsi/gomega v1.13.0 example.com/m/v2 imports github.com/lucas-clemente/quic-go/ackhandler: cannot find module providing package github.com/lucas-clemente/quic-go/ackhandler example.com/m/v2 imports github.com/lucas-clemente/quic-go/congestion: cannot find module providing package github.com/lucas-clemente/quic-go/congestion example.com/m/v2 imports github.com/lucas-clemente/quic-go/internal/crypto: cannot find module providing package github.com/lucas-clemente/quic-go/internal/crypto example.com/m/v2 imports github.com/lucas-clemente/quic-go/qerr: cannot find module providing package github.com/lucas-clemente/quic-go/qerr example.com/m/v2/example imports github.com/lucas-clemente/quic-go/h2quic: cannot find module providing package github.com/lucas-clemente/quic-go/h2quic example.com/m/v2 tested by example.com/m/v2.test imports github.com/lucas-clemente/quic-go/internal/mocks/mocks_fc: cannot find module providing package github.com/lucas-clemente/quic-go/internal/mocks/mocks_fc example.com/m/v2/benchmark tested by example.com/m/v2/benchmark.test imports github.com/lucas-clemente/quic-go/integrationtests/tools/testlog: cannot find module providing package github.com/lucas-clemente/quic-go/integrationtests/tools/testlog example.com/m/v2/integrationtests/chrome tested by example.com/m/v2/integrationtests/chrome.test imports github.com/lucas-clemente/quic-go/integrationtests/tools/testserver: cannot find module providing package github.com/lucas-clemente/quic-go/integrationtests/tools/testserver

Did you meet the same problem?

No I didn't meet this error before...

elhachi commented 2 years ago

@elhachi your question might be solved by following commands: cd ~/gopath/go_demo/src/github.com/bifurcation/mint git reset --hard a6080d464fb57a9330c2124ffb62f3c233e3400e cd ~/gopath/go_demo/src/github.com/lucas-clemente/quic-go go build

@ArthurCChen unfortunately, I still got the same error...

ArthurCChen commented 2 years ago

It seems we're doing the same thing. You can make me a zoom chat anytime:), in case that we can help each other.

qdeconinck commented 2 years ago

Unfortunately, this code has been done when the Golang did not offer a way to specify precise dependency versions (go.mod and go.sum files). As stated in https://multipath-quic.org/2017/12/09/artifacts-available.html, you can download the VM with the right code using the following link: https://multipath-quic.org/kvm-mpquic.vmdk.zip. If you are willing to, you could try to generate the corresponding deps files and file a PR with this to make this process simpler.

Anirudh533 commented 2 years ago

@qdeconinck I have installed this VM in oracle virtualbox (https://multipath-quic.org/kvm-mpquic.vmdk.zip), but I'm not able to generate MPQUIC packets. Can you please guide me on how to do it?

Thank you in advance!

luotianyi521jpg commented 1 month ago

看来我们在做同样的事情。你可以随时给我发一个 zoom 聊天:),以便我们可以互相帮助。 你好,请问可以讨论一下有关这个项目的问题吗,我在安装上遇到了一点问题,你可以向我发送邮件联系,23210240321@m.fudan.edu.cn,,非常感谢你