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

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

* To take effect artifacts v4 pr is needed with adjusted claims

(cherry picked from commit c606759e8c0c2d5036c5bb15d7ec87beca1150cf)
This commit is contained in:
ChristopherHX 2024-03-05 07:04:54 +01:00 committed by Earl Warren
parent d4566ea157
commit 4b2554db86

View file

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