From 0167919fceae46f56fc7199729f1ed8a3757a7f4 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 3 Dec 2019 17:36:58 -0500 Subject: [PATCH] ignore .tmp stuff --- pkging/pkgutil/stuff.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkging/pkgutil/stuff.go b/pkging/pkgutil/stuff.go index 434e85c..698baad 100644 --- a/pkging/pkgutil/stuff.go +++ b/pkging/pkgutil/stuff.go @@ -3,6 +3,7 @@ package pkgutil import ( "io" "os" + "strings" "github.com/gobuffalo/here" "github.com/markbates/pkger/parser" @@ -23,6 +24,9 @@ func Stuff(w io.Writer, c here.Info, decls parser.Decls) error { for _, pf := range files { err = func() error { + if strings.HasSuffix(pf.Abs, ".tmp") { + return nil + } df, err := os.Open(pf.Abs) if err != nil { return err