mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Update build tag constraints
This patch updates all build tag constraints to add the new format, alongside the old one, to maintain backwards compatibility. This was done by using `go fmt`. See https://go.dev/doc/go1.17#gofmt and https://golang.org/design/draft-gobuild for more details.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// chasquid-util is a command-line utility for chasquid-related operations.
|
// chasquid-util is a command-line utility for chasquid-related operations.
|
||||||
//
|
//
|
||||||
// Don't include it in the coverage build.
|
// Don't include it in the coverage build.
|
||||||
|
//go:build !coverage
|
||||||
// +build !coverage
|
// +build !coverage
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
//
|
//
|
||||||
// See coverage_test.go for the details, this is the same horrible hack.
|
// See coverage_test.go for the details, this is the same horrible hack.
|
||||||
//
|
//
|
||||||
|
//go:build coveragebin
|
||||||
// +build coveragebin
|
// +build coveragebin
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//
|
//
|
||||||
// See the usage below for details.
|
// See the usage below for details.
|
||||||
//
|
//
|
||||||
|
//go:build !coverage
|
||||||
// +build !coverage
|
// +build !coverage
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// smtp-check is a command-line too for checking SMTP setups.
|
// smtp-check is a command-line too for checking SMTP setups.
|
||||||
//
|
//
|
||||||
|
//go:build !coverage
|
||||||
// +build !coverage
|
// +build !coverage
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// Command line tool for playing with the SPF library.
|
// Command line tool for playing with the SPF library.
|
||||||
//
|
//
|
||||||
// Not for use in production, just development and experimentation.
|
// Not for use in production, just development and experimentation.
|
||||||
|
//go:build !coverage
|
||||||
// +build !coverage
|
// +build !coverage
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
//
|
//
|
||||||
// The test has a build label so it's not accidentally executed during normal
|
// The test has a build label so it's not accidentally executed during normal
|
||||||
// "go test" invocations.
|
// "go test" invocations.
|
||||||
|
//go:build coveragebin
|
||||||
// +build coveragebin
|
// +build coveragebin
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// This is only used in tests, when the "dnsoverride" tag is active.
|
// This is only used in tests, when the "dnsoverride" tag is active.
|
||||||
// It requires Go >= 1.8.
|
// It requires Go >= 1.8.
|
||||||
//
|
//
|
||||||
|
//go:build dnsoverride
|
||||||
// +build dnsoverride
|
// +build dnsoverride
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// Fuzz testing for package aliases.
|
// Fuzz testing for package aliases.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package aliases
|
package aliases
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// Fuzz testing for package aliases.
|
// Fuzz testing for package aliases.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package auth
|
package auth
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// Fuzz testing for package normalize.
|
// Fuzz testing for package normalize.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package normalize
|
package normalize
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// Fuzz testing for package smtpsrv. Based on server_test.
|
// Fuzz testing for package smtpsrv. Based on server_test.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package smtpsrv
|
package smtpsrv
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// SMTP connection generator, for testing purposes.
|
// SMTP connection generator, for testing purposes.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// Generate an HTML visualization of a Go coverage profile.
|
// Generate an HTML visualization of a Go coverage profile.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// Fetch an URL, and check if the response matches what we expect.
|
// Fetch an URL, and check if the response matches what we expect.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// Generate a self-signed X.509 certificate for a TLS server. Outputs to
|
// Generate a self-signed X.509 certificate for a TLS server. Outputs to
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
//
|
//
|
||||||
// From: https://git.lukeshu.com/go/cmd/gocovcat/
|
// From: https://git.lukeshu.com/go/cmd/gocovcat/
|
||||||
//
|
//
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// Copyright 2017 Luke Shumaker <lukeshu@parabola.nu>
|
// Copyright 2017 Luke Shumaker <lukeshu@parabola.nu>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// SMTP load generator, for testing purposes.
|
// SMTP load generator, for testing purposes.
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// minidns is a trivial DNS server used for testing.
|
// minidns is a trivial DNS server used for testing.
|
||||||
|
|||||||
Reference in New Issue
Block a user