ignore .tmp stuff

This commit is contained in:
Mark Bates 2019-12-03 17:36:58 -05:00
parent e4d652a24e
commit 0167919fce
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package pkgutil
import ( import (
"io" "io"
"os" "os"
"strings"
"github.com/gobuffalo/here" "github.com/gobuffalo/here"
"github.com/markbates/pkger/parser" "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 { for _, pf := range files {
err = func() error { err = func() error {
if strings.HasSuffix(pf.Abs, ".tmp") {
return nil
}
df, err := os.Open(pf.Abs) df, err := os.Open(pf.Abs)
if err != nil { if err != nil {
return err return err