From 95793bce7d3eaa26fe814335010d7514e9da46fa Mon Sep 17 00:00:00 2001 From: Alexey Kardashevskiy Date: Tue, 6 Jul 2021 14:01:49 +1000 Subject: pkg: update generated files to go 1.17 "make generate" produces this diff when go 1.17 (go1.17-c95464f0ea3f==upstream) is used. Seems compatible with >=1.16. https://github.com/golang/go/commit/4d2d89ff42ca documents the syntax. https://github.com/golang/go/commit/eeadce2d8713 enforces "ignore" for unsatisfiable tags hence the pkg/csource/gen.go change. Signed-off-by: Alexey Kardashevskiy --- tools/syz-linter/linter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/syz-linter') diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go index 457d57935..3afc84ca4 100644 --- a/tools/syz-linter/linter.go +++ b/tools/syz-linter/linter.go @@ -145,7 +145,7 @@ var ( noPeriodComment = regexp.MustCompile(`^// [A-Z][a-z].+[a-z]$`) lowerCaseComment = regexp.MustCompile(`^// [a-z]+ `) onelineExceptions = regexp.MustCompile(`// want \"|http:|https:`) - specialComment = regexp.MustCompile(`//go:generate|// nolint:`) + specialComment = regexp.MustCompile(`//go:generate|//go:build|// nolint:`) ) // checkStringLenCompare checks for string len comparisons with 0. -- cgit mrf-deployment