From fd6ba7bf4003b44ff654ea288bf4aec168c793f6 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Sat, 22 Nov 2025 14:46:36 -0800 Subject: [PATCH] Allow partial validation of templates with missing drivers Right now we just show a warning and skip validation. That means we won't alert the user to any errors in the generic parts of the template, which seems contrary to the purpose of a validation command. Signed-off-by: Jan Dubois --- cmd/limactl/template.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/limactl/template.go b/cmd/limactl/template.go index de9cd54fe87..c670086ad7c 100644 --- a/cmd/limactl/template.go +++ b/cmd/limactl/template.go @@ -262,7 +262,6 @@ func templateValidateAction(cmd *cobra.Command, args []string) error { } if err := driverutil.ResolveVMType(ctx, y, filePath); err != nil { logrus.Warnf("failed to resolve VM type for %q: %v", filePath, err) - continue } if err := limayaml.Validate(y, false); err != nil { return fmt.Errorf("failed to validate YAML file %q: %w", arg, err)