Make verify-typecheck.sh only check valid targets for a platform

e.g., don't try to compile kube-proxy on darwin, since we don't build
it there anyway.
This commit is contained in:
Dan Winship
2023-11-03 17:42:12 -04:00
parent f883370b8a
commit e48aa09340
3 changed files with 28 additions and 5 deletions

View File

@@ -294,7 +294,11 @@ func main() {
}()
f := false
serialFprintf(os.Stdout, "type-checking %s\n", plat)
if len(args) != 0 {
serialFprintf(os.Stdout, "type-checking %s against %s\n", plat, args)
} else {
serialFprintf(os.Stdout, "type-checking %s\n", plat)
}
errors, err := c.verify(plat)
if err != nil {
serialFprintf(os.Stderr, "ERROR(%s): failed to verify: %v\n", plat, err)