From a775878f48382a991e2f7c7865bc27e9d758d913 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Sun, 21 Nov 2021 20:40:21 +0900 Subject: [PATCH] run checks on lowercase dir --- handlers/checks.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/checks.go b/handlers/checks.go index 2a2274a..0bf428c 100644 --- a/handlers/checks.go +++ b/handlers/checks.go @@ -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) {