sbwml / luci-app-mosdns

一个 DNS 转发器 - OpenWrt 🎁 MosDNS v5 is Ready! 🎉
https://github.com/IrineSistiana/mosdns
1.19k stars 229 forks source link

编译失败 go.1.2 #170

Closed vi-si closed 11 months ago

vi-si commented 11 months ago

Building targets github.com/quic-go/quic-go/internal/qtls

github.com/quic-go/quic-go/internal/qtls

../../../../../dl/go-mod-cache/github.com/quic-go/quic-go@v0.40.0/internal/qtls/go_oldversion.go:5:13: cannot use "The version of quic-go you're using can't be built using outdated Go versions. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built using outdated Go...) as int value in variable declaration note: module requires Go 1.20 github.com/IrineSistiana/mosdns/v5/pkg/utils

github.com/IrineSistiana/mosdns/v5/pkg/utils

../../pkg/utils/strings.go:29:16: undefined: unsafe.String ../../pkg/utils/strings.go:29:30: undefined: unsafe.SliceData note: module requires Go 1.20 github.com/IrineSistiana/mosdns/v5/pkg/upstream/bootstrap

github.com/IrineSistiana/mosdns/v5/pkg/upstream/bootstrap

../../pkg/upstream/bootstrap/bootstrap.go:93:22: undefined: context.Cause ../../pkg/upstream/bootstrap/bootstrap.go:205:35: undefined: context.Cause note: module requires Go 1.20

应该是GO 1.20出错

请问有用 https://github.com/hanwckf/immortalwrt-mt798x 编译成功的吗

sbwml commented 11 months ago

image

blueberry-pie-11 commented 11 months ago

其实吧,官方的openwrt22用的还是go1.19