mirror of https://github.com/restic/restic.git
Ignore vendor/ directory for gofmt tests
This commit is contained in:
parent
b3c2febf79
commit
c51889c157
|
@ -212,7 +212,7 @@ func (env *AppveyorEnvironment) RunTests() {
|
||||||
// findGoFiles returns a list of go source code file names below dir.
|
// findGoFiles returns a list of go source code file names below dir.
|
||||||
func findGoFiles(dir string) (list []string, err error) {
|
func findGoFiles(dir string) (list []string, err error) {
|
||||||
err = filepath.Walk(dir, func(name string, fi os.FileInfo, err error) 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
|
return filepath.SkipDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue