git » spf » commit a691aa8

Update build constraint format

author Alberto Bertogli
2022-06-18 23:17:49 UTC
committer Alberto Bertogli
2022-06-18 23:17:49 UTC
parent 5a188ab835d1e8da402a8c6966a57dcd9dd81354

Update build constraint format

Since Go 1.17, there's a new format for build constraints. For now, both
can co-exist, but at some point in the future only the new format will
be accepted.

This patch adds the new one but leaves the old one around, for forwards
and backwards compatibility.

At some point in the future, once our minimum supported Go version has
dropped support for the old format, we will remove it.

cmd/spf-check/spf-check.go +1 -0
fuzz.go +1 -0

diff --git a/cmd/spf-check/spf-check.go b/cmd/spf-check/spf-check.go
index 3967e69..86c3d1e 100644
--- a/cmd/spf-check/spf-check.go
+++ b/cmd/spf-check/spf-check.go
@@ -1,3 +1,4 @@
+//go:build ignore
 // +build ignore
 
 // Command line tool to perform SPF checks.
diff --git a/fuzz.go b/fuzz.go
index 1103b99..23c343c 100644
--- a/fuzz.go
+++ b/fuzz.go
@@ -6,6 +6,7 @@
 //   go-fuzz -bin=./spf-fuzz.zip -workdir=testdata/fuzz
 //
 
+//go:build gofuzz
 // +build gofuzz
 
 package spf