From bf708b005d64d7318c5c9f03ec85219ed7b8e10a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 5 Apr 2014 19:13:58 -0700 Subject: [PATCH] closure: ignore emacs temp files in gendeps Change-Id: I634d46f2f55673eb81dcc8532bdc2ba4fc294c5f --- pkg/misc/closure/gendeps.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/misc/closure/gendeps.go b/pkg/misc/closure/gendeps.go index c4165560b..b94f72109 100644 --- a/pkg/misc/closure/gendeps.go +++ b/pkg/misc/closure/gendeps.go @@ -66,6 +66,10 @@ func GenDepsWithPath(pathPrefix string, root http.FileSystem) ([]byte, error) { if !strings.HasSuffix(name, ".js") { continue } + if strings.HasPrefix(name, ".#") { + // Emacs noise. + continue + } f, err := root.Open(name) if err != nil { return nil, fmt.Errorf("Could not open %v: %v", name, err)