AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.37k stars 246 forks source link

Build fails with "build constraints exclude all Go files in github.com/lucas-clemente/quic-go/internal/qtls" #213

Closed guillaume-uH57J9 closed 2 years ago

guillaume-uH57J9 commented 2 years ago

dnsproxy fails to build using go 1.15.15 on Debian 11.2.

The same error is reported when building version 0.40.0, 0.41.3, and git master. As a side note, consider using the "git main" branch naming convention.

~/dnsproxy-0.41.3$ go build -mod=vendor package github.com/AdguardTeam/dnsproxy imports github.com/AdguardTeam/dnsproxy/proxy imports github.com/AdguardTeam/dnsproxy/fastip imports github.com/AdguardTeam/dnsproxy/upstream imports github.com/lucas-clemente/quic-go imports github.com/lucas-clemente/quic-go/internal/handshake imports github.com/lucas-clemente/quic-go/internal/qtls: build constraints exclude all Go files in /home/dnsproxy/dnsproxy-0.41.3/vendor/github.com/lucas-clemente/quic-go/internal/qtls

guillaume-uH57J9 commented 2 years ago

This obscure error happen because go is too old on my system. Installing go 1.17 from bullseye-backports solves this.

apt install golang-go/bullseye-backports golang-src/bullseye-backports

Closing since go 1.16 is required according to docs