Skip to content

Commit

Permalink
Fix spelling in package naming linter error message
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Dec 20, 2016
1 parent 1bfd4f0 commit ed1baf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hack/verify-pkg-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ kube::golang::verify_go_version

cd "${KUBE_ROOT}"
if git --no-pager grep -E $'^(import |\t)[a-z]+[A-Z_][a-zA-Z]* "[^"]+"$' -- '**/*.go' ':(exclude)vendor/*' ':(exclude)staging/*'; then
echo "!!! Some package aliase break go conventions."
echo "To fix these errors, do not use capitalizaed or underlined characters"
echo "!!! Some package aliases break go conventions."
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."
exit 1
fi
4 changes: 2 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ echo "${reset}"
echo -ne "Checking for package aliases... "
if ! hack/verify-pkg-names.sh > /dev/null; then
echo "${red}ERROR!"
echo "Some package aliase break go conventions. To fix these errors, "
echo "do not use capitalizaed or underlined characters in pkg aliases. "
echo "Some package aliases break go conventions. To fix these errors, "
echo "do not use capitalized or underlined characters in pkg aliases. "
echo "Refer to https://blog.golang.org/package-names for more info."
exit_code=1
else
Expand Down

0 comments on commit ed1baf1

Please sign in to comment.