File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/leonid-shevtsov/split_tests
22
33go 1.14
44
5- require github.com/mattn/go-zglob v0.0.0-20170124115757-95345c4e1c0e
5+ require github.com/bmatcuk/doublestar v1.3.0
Original file line number Diff line number Diff line change 1- github.com/mattn/go-zglob v0.0.0-20170124115757-95345c4e1c0e h1:MjZj0KCx7aFNToMEqvMJB0IE+PpRi/goV1RC4NPfy4A =
2- github.com/mattn/go-zglob v0.0.0-20170124115757-95345c4e1c0e /go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo =
1+ github.com/bmatcuk/doublestar v1.3.0 h1:1jLE2y0VpSrOn/QR9G4f2RmrCtkM3AuATcWradjHUvM =
2+ github.com/bmatcuk/doublestar v1.3.0 /go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE =
Original file line number Diff line number Diff line change 77 "strconv"
88 "strings"
99
10- zglob "github.com/mattn/go-zglob "
10+ "github.com/bmatcuk/doublestar "
1111)
1212
1313var useCircleCI bool
@@ -148,7 +148,13 @@ func parseFlags() {
148148func main () {
149149 parseFlags ()
150150
151- currentFiles , _ := zglob .Glob (testFilePattern )
151+ // We are not using filepath.Glob,
152+ // because it doesn't support '**' (to match all files in all nested directories)
153+ currentFiles , err := doublestar .Glob (testFilePattern )
154+ if err != nil {
155+ printMsg ("failed to enumerate current file set: %v" , err )
156+ os .Exit (1 )
157+ }
152158 currentFileSet := make (map [string ]bool )
153159 for _ , file := range currentFiles {
154160 currentFileSet [file ] = true
You can’t perform that action at this time.
0 commit comments