mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix pkg-names script that doesn't select files properly
This commit is contained in:
parent
e7151ce294
commit
170bcd9262
@ -26,7 +26,7 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
|||||||
kube::golang::verify_go_version
|
kube::golang::verify_go_version
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
if git --no-pager grep -E $'^(import |\t)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$' -- '**/*.go' ':(exclude)vendor/*' ':(exclude)**.*.pb.go'; then
|
if git --no-pager grep -E $'^(import |\t)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$' -- '**/*.go' ':(exclude)vendor/*' ':(exclude)**/*.pb.go'; then
|
||||||
echo "!!! Some package aliases break go conventions."
|
echo "!!! Some package aliases break go conventions."
|
||||||
echo "To fix these errors, do not use capitalized or underlined characters"
|
echo "To fix these errors, do not use capitalized or underlined characters"
|
||||||
echo "in pkg aliases. Refer to https://blog.golang.org/package-names for more info."
|
echo "in pkg aliases. Refer to https://blog.golang.org/package-names for more info."
|
||||||
|
Loading…
Reference in New Issue
Block a user