pion / dtls

DTLS 1.2 Server/Client implementation for Go
https://pion.ly/
MIT License
604 stars 158 forks source link

golang.org/x/crypto 版本问题. #655

Closed lee-dong closed 3 months ago

lee-dong commented 4 months ago

在使用v4版本的时候[github.com/pion/webrtc/v4 v4.0.0-beta.22],会报如下错误: Build Error: go build -o /data/app/golang/speech-rtc/__debug_bin243354781 -gcflags all=-N -l . vendor/golang.org/x/crypto/curve25519/curve25519.go:13:8: cannot find package "." in: /data/app/golang/speech-rtc/vendor/crypto/ecdh (exit status 1)

那是应该你使用的 golang.org/x/crypto v0.25.0 版本 解决方法: 将crypto 降到 v0.24.0 版本即可 go get golang.org/x/crypto@v0.24.0

Sean-Der commented 4 months ago

What version of Golang are you using @lee-dong ?

Sean-Der commented 3 months ago

Hi @lee-dong

Hopefully upgrading Go versions helped. If you are still having trouble please re-open thank you!