Skip to content

Commit

Permalink
Merge pull request #244 from saschagrunert/go-build-constraints
Browse files Browse the repository at this point in the history
Allow go 1.17 build constraints in `verify_boilerplate.py`
  • Loading branch information
k8s-ci-robot authored Nov 1, 2021
2 parents 72a6f5d + 9d9355c commit c1ad008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/verify_boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def get_regexs():
# dates can be any year between 2014 and the current year, company holder names can be anything
regexs["date"] = re.compile(get_dates())
# strip // +build \n\n build constraints
regexs["go_build_constraints"] = re.compile(r"^(// \+build.*\n)+\n",
regexs["go_build_constraints"] = re.compile(r"^(//( \+build|go:build).*\n)+\n",
re.MULTILINE)
# strip #!.* from shell/python scripts
regexs["shebang"] = re.compile(r"^(#!.*\n)\n*", re.MULTILINE)
Expand Down

0 comments on commit c1ad008

Please sign in to comment.