From 6087fc101c46e6ac7382f521e8714b43990c57d2 Mon Sep 17 00:00:00 2001 From: Softonik Date: Fri, 6 Jun 2025 17:06:26 +0300 Subject: [PATCH] =?UTF-8?q?AST:=20=D1=84=D0=B0=D0=B9=D0=BB=20Magefile.go?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=BF=D1=83=D1=81=D0=BA=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=B8=D1=81?= =?UTF-8?q?=D0=BA=D0=B5=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BA=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/formatters/ast/helpers.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/formatters/ast/helpers.go b/pkg/formatters/ast/helpers.go index 2928e94..771ad43 100644 --- a/pkg/formatters/ast/helpers.go +++ b/pkg/formatters/ast/helpers.go @@ -24,7 +24,9 @@ func получитьИмяGoПакетаВЭтойДире() (pkg_name string, return err } - if !info.IsDir() && filepath.Ext(path) == ".go" { + if !info.IsDir() && + filepath.Ext(path) == ".go" && + info.Name() != "Magefile.go" { pkg, err := lib.ПолучитьИмяGoПакетаФайла(path) if err != nil { return err