fix: docker buildx cache restore not working (#2236)

* To take effect artifacts v4 pr is needed with adjusted claims
This commit is contained in:
ChristopherHX 2024-03-05 07:04:54 +01:00 committed by GitHub
parent 934b13a7a1
commit 75e4ad93f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ func (h *Handler) findCache(db *bolthold.Store, keys []string, version string) (
}
stop := fmt.Errorf("stop")
for _, prefix := range keys[1:] {
for _, prefix := range keys {
found := false
prefixPattern := fmt.Sprintf("^%s", regexp.QuoteMeta(prefix))
re, err := regexp.Compile(prefixPattern)