diff --git a/plugin/util.go b/plugin/util.go index 37574d3..1b4a7b1 100644 --- a/plugin/util.go +++ b/plugin/util.go @@ -99,7 +99,7 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (string, error) { return "", fmt.Errorf("error iterating tags %w", err) } - if tagDate != nil && t.Tagger.When.Sub(*tagDate) > 0 { + if tagDate != nil && t.Tagger.When.Before(*tagDate) { continue }