mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
add a tool in cmd/ to check links in go file. Currently it's only used to check the links in api descriptions (pkg/api/.../types.go).
This commit is contained in:
@@ -97,6 +97,16 @@ else
|
||||
fi
|
||||
echo "${reset}"
|
||||
|
||||
echo -ne "Checking for links in API descriptions... "
|
||||
if ! hack/verify-linkcheck.sh > /dev/null; then
|
||||
echo "${red}ERROR!"
|
||||
echo "Some links in pkg/api/.*types.go is outdated. They require manual fix."
|
||||
exit_code=1
|
||||
else
|
||||
echo "${green}OK"
|
||||
fi
|
||||
echo "${reset}"
|
||||
|
||||
echo -ne "Checking for docs that need updating... "
|
||||
if ! hack/verify-gendocs.sh > /dev/null; then
|
||||
echo "${red}ERROR!"
|
||||
|
Reference in New Issue
Block a user