From 58f8e61ddcf09a83e76a1588fa868968640c29a2 Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Fri, 27 Aug 2021 14:01:00 +0100 Subject: [PATCH] fix: Continue if judge can't parse version of result Not all results are expected to have valid versions, such as additional resources. fixes #204 --- pkg/judge/rego.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/judge/rego.go b/pkg/judge/rego.go index b93da0e5..73737b3f 100644 --- a/pkg/judge/rego.go +++ b/pkg/judge/rego.go @@ -55,7 +55,7 @@ func (j *RegoJudge) Eval(input []map[string]interface{}) ([]Result, error) { since, err := goversion.NewVersion(m["Since"].(string)) if err != nil { - return nil, err + log.Debug().Msgf("Failed to parse version: %w", err) } results = append(results, Result{