Skip to content

Commit f0b0805

Browse files
authored
fix: fail on missing CRDs for compat-check command (#679)
Description of changes: This command is meant to be ran inside an ACK controller directory. Currently it has been silently failing if it can't discover missing CRDs. With this change, we will fail if we can't detect CRD files. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 0695fbb commit f0b0805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/ack-generate/command/crd_compat_check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func checkCRDCompat(cmd *cobra.Command, args []string) error {
7070

7171
if len(crdFiles) == 0 {
7272
fmt.Println("No CRD files found, nothing to check.")
73-
return nil
73+
return fmt.Errorf("no CRD files found in %v", optCRDPaths)
7474
}
7575

7676
hasBreaking := false

0 commit comments

Comments
 (0)