From c74ea2bc7b997c3d4ed0fa4b0cd47d2686f2108e Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 2 Feb 2021 08:47:52 +0300 Subject: [PATCH] fix check Signed-off-by: Vasiliy Tolstov --- encoder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder.go b/encoder.go index 1c0e989..184fdb1 100644 --- a/encoder.go +++ b/encoder.go @@ -105,9 +105,9 @@ func (e *GenericTemplateBasedEncoder) templates() ([]string, error) { } for _, component := range components { if debug { - log.Printf("check file template %s for %s", name, "_"+component+".pb.go") + log.Printf("check file template %s for %s", name, "_"+component+".pb.go.tmpl") } - if component == "all" || strings.Contains(name, "_"+component+".pb.go") { + if component == "all" || strings.Contains(name, "_"+component+".pb.go.tmpl") { skip = false } }