2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 08:14:03 +00:00

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
}