From 12ab72a6ff2f2c8f79ebb222ce6bed30ecacbc6d Mon Sep 17 00:00:00 2001 From: Vimal Kumar Date: Mon, 18 Apr 2022 05:58:31 +0530 Subject: [PATCH] smoke test:fix license header check --- scripts/test_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test_lib.sh b/scripts/test_lib.sh index f2bb91ca6..a22a87446 100644 --- a/scripts/test_lib.sh +++ b/scripts/test_lib.sh @@ -108,7 +108,7 @@ function relativePath { # go_srcs_in_module [package] # returns list of all not-generated go sources in the current (dir) module. function go_srcs_in_module { - go fmt -n "$1" | grep -Eo "([^ ]*)$" | grep -vE "(\\_test.go|\\.pb\\.go|\\.pb\\.gw.go)" + go list -f "{{with \$c:=.}}{{range \$f:=\$c.GoFiles }}{{\$c.Dir}}/{{\$f}}{{\"\n\"}}{{end}}{{end}}" ./... | grep -vE "(\\.pb\\.go|\\.pb\\.gw.go)" } # pkgs_in_module [optional:package_pattern]