diff --git a/cmd/files.go b/cmd/files.go index 6544379..b8b07cb 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -326,6 +326,11 @@ func walkPath(path string, fileChannel chan<- string, wg0 *sync.WaitGroup, stats }() wg1.Wait() + + // Without this, file counts randomly vary. + // Pending further debugging, likely relating + // to stats channel close timing issues. + time.Sleep(1 * time.Microsecond) } func scanPaths(paths []string, sort string, index *fileIndex, formats types.Types, errorChannel chan<- error) []string { diff --git a/cmd/root.go b/cmd/root.go index e8c02c7..327a98c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "5.0.0" + ReleaseVersion string = "5.0.1" ) var (