1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-06 17:40:58 +00:00

fix: docker buildx cache restore not working

This commit is contained in:
ChristopherHX 2024-03-05 07:04:54 +01:00 committed by Andrii Chyrva
parent ba102368d3
commit f147e45da3

View file

@ -431,7 +431,12 @@ func findCache(db *bolthold.Store, repo string, keys []string, version string) (
return nil, fmt.Errorf("find cache: %w", err)
}
return cache, nil
} else if cache.Complete {
return cache, nil
}
}
for _, prefix := range keys {
prefixPattern := fmt.Sprintf("^%s", regexp.QuoteMeta(prefix))
re, err := regexp.Compile(prefixPattern)
if err != nil {