run checks on lowercase dir

This commit is contained in:
Shawn Smith
2021-11-21 20:40:21 +09:00
parent 7fc28bcf6d
commit a775878f48

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"log"
"strings"
"time"
badger "github.com/dgraph-io/badger/v2"
@@ -21,7 +22,7 @@ func (n notFoundError) Error() string {
}
func dirName(repo string) string {
return fmt.Sprintf("_repos/src/%s", repo)
return fmt.Sprintf("_repos/src/%s", strings.ToLower(repo))
}
func getFromCache(db *badger.DB, repo string) (checksResp, error) {