Skip to content

Commit f18c9dc

Browse files
authored
ci: skip boilerplate for git submodules (#21214)
* skip submodules for boilerplate * restore * add git module subfolders
1 parent 67329ba commit f18c9dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/boilerplate/boilerplate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var (
3131
boilerplatedir = flag.String("boilerplate-dir", ".", "Boilerplate directory for boilerplate files")
3232
rootdir = flag.String("rootdir", "../../", "Root directory to examine")
3333
verbose = flag.Bool("v", false, "Verbose")
34-
skippedPaths = regexp.MustCompile(`Godeps|third_party|_gopath|_output|\.git|cluster/env.sh|vendor|test/e2e/generated/bindata.go|site/themes/docsy|test/integration/testdata`)
34+
skippedPaths = regexp.MustCompile(`Godeps|third_party|_gopath|_output|\.git|cluster/env.sh|vendor|test/e2e/generated/bindata.go|site/themes/docsy|test/integration/testdata|hack/benchmark/image-build/minikube-image-benchmark|hack/benchmark/time-to-k8s/time-to-k8s-repo`)
3535
windowdNewLine = regexp.MustCompile(`\r`)
3636
txtExtension = regexp.MustCompile(`\.txt`)
3737
goBuildTag = regexp.MustCompile(`(?m)^(//go:build.*\n)+\n`)
@@ -41,6 +41,7 @@ var (
4141
)
4242

4343
func main() {
44+
flag.Parse()
4445
refs, err := extensionToBoilerplate(*boilerplatedir)
4546
if err != nil {
4647
log.Fatal(err)

0 commit comments

Comments
 (0)