panic: qtls.ClientSessionState not compatible with tls.ClientSessionState
goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.2()
C:/Users/natob/Go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/unsafe.go:26 +0x20e
OS: Windows 10 Pro x86_64
Host: System manufacturer
Kernel: 10.0.19041
Uptime: 20 hours, 48 mins
Shell: bash 4.4.23
Resolution: 1920x1080
DE: Aero
WM: Explorer
WM Theme: Custom
Terminal: Windows Terminal
CPU: Intel i5-3570K (4) @ 3.470GHz
Memory: 10395MiB / 24519MiB
go version go1.15 windows/amd64
I tried to compile the master branch, but the output can't run.
panic: qtls.ClientSessionState not compatible with tls.ClientSessionState
goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.2()
C:/Users/natob/Go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/unsafe.go:26 +0x20e
FWIW, I got the same error. I am on Ubuntu 16.04. I just upgraded to go1.15. I pulled the latest go-ipfs , did make clean and make install .
Ubuntu 18.04 and go1.15, the same error.
Can you see if downgrading to the previous go version gets around this issue? If you're on Ubuntu you can run:
sudo snap remove go # assuming you installed Go using Snap in the first place.
sudo snap install go --channel=1.14/stable --classic
That works for me on Ubuntu 16.04. I removed the Go installation and installed go1.14.7 . Then I did make clean and make install. Now I can run ipfs daemon .
This issue is related to quic-go and Go 1.15. https://github.com/lucas-clemente/quic-go/issues/2614
@marten-seemann ^^
Wait, I didn't even know it was a thing to support more than one Go version. Why even bother?
This will be fixed once https://github.com/libp2p/go-libp2p-quic-transport/pull/171 is merged.
https://github.com/libp2p/go-libp2p-quic-transport/pull/171 is merged!
On master, this works.
go get -u github.com/libp2p/go-libp2p-quic-transport
go install ./cmd/ipfs
ipfs version --all
go-ipfs version: 0.7.0-dev
Repo version: 10
System version: amd64/windows
Golang version: go1.15
Yep, merged and released. The update will be in 0.7.0
It works!
go-ipfs version: 0.8.0-dev-c5825c29a
Repo version: 10
System version: arm64/linux
Golang version: go1.15
Most helpful comment
This issue is related to quic-go and Go 1.15. https://github.com/lucas-clemente/quic-go/issues/2614
@marten-seemann ^^