소스 검색

lib/connections: Add noquic tag

The QUIC package is notorious for being incompatible with either too
old or too new Go releases. Currently it doesn't build with Go 1.15 RC
and I want to test the rest with Go 1.15. With this I can do `go run
build.go --tags noquic` to do that.
Jakob Borg 5 년 전
부모
커밋
6f4671ed27
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      lib/connections/quic_dial.go
  2. 1 1
      lib/connections/quic_listen.go
  3. 1 1
      lib/connections/quic_misc.go

+ 1 - 1
lib/connections/quic_dial.go

@@ -4,7 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at https://mozilla.org/MPL/2.0/.
 
-// +build go1.12
+// +build go1.12,!noquic
 
 package connections
 

+ 1 - 1
lib/connections/quic_listen.go

@@ -4,7 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
-// +build go1.12
+// +build go1.12,!noquic
 
 package connections
 

+ 1 - 1
lib/connections/quic_misc.go

@@ -4,7 +4,7 @@
 // License, v. 2.0. If a copy of the MPL was not distributed with this file,
 // You can obtain one at http://mozilla.org/MPL/2.0/.
 
-// +build go1.12
+// +build go1.12,!noquic
 
 package connections