Merge pull request #3364 from lucas-clemente/better-go-version-error

improve the error thrown when building with an unsupported Go version
This commit is contained in:
Marten Seemann
2022-04-02 19:55:20 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -3,4 +3,4 @@
package qtls
var _ int = "quic-go doesn't build on Go 1.19 yet."
var _ int = "The version of quic-go you're using can't be built on Go 1.19 yet. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions."

View File

@@ -0,0 +1,7 @@
//go:build (go1.9 || go1.10 || go1.11 || go1.12 || go1.13 || go1.14 || go1.15) && !go1.16
// +build go1.9 go1.10 go1.11 go1.12 go1.13 go1.14 go1.15
// +build !go1.16
package qtls
var _ int = "The version of quic-go you're using can't be built using outdated Go versions. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions."