Ignore vendor/ directory for gofmt tests

This commit is contained in:
Alexander Neumann 2016-02-14 18:44:08 +01:00
parent b3c2febf79
commit c51889c157

View file

@ -212,7 +212,7 @@ func (env *AppveyorEnvironment) RunTests() {
// findGoFiles returns a list of go source code file names below dir.
func findGoFiles(dir string) (list []string, err error) {
err = filepath.Walk(dir, func(name string, fi os.FileInfo, err error) error {
if filepath.Base(name) == "Godeps" {
if filepath.Base(name) == "vendor" {
return filepath.SkipDir
}