diff --git a/pkg/formatters/ast/helpers.go b/pkg/formatters/ast/helpers.go index 771ad43..9320738 100644 --- a/pkg/formatters/ast/helpers.go +++ b/pkg/formatters/ast/helpers.go @@ -12,10 +12,14 @@ import ( "git.golang1.ru/softonik/godog/pkg/lib" ) -const ( - BACKUP_DIR = ".back" +var ( + BACKUP_DIR = "backup" ) +func init() { + BACKUP_DIR = os.TempDir() + "/godog/" + BACKUP_DIR +} + func получитьИмяGoПакетаВЭтойДире() (pkg_name string, err_ret error) { err_ret = errors.New("not found")