From 4b2554db864f352743dbb11809cfd109d0cd6b8b Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Tue, 5 Mar 2024 07:04:54 +0100 Subject: [PATCH] fix: docker buildx cache restore not working (#2236) * To take effect artifacts v4 pr is needed with adjusted claims (cherry picked from commit c606759e8c0c2d5036c5bb15d7ec87beca1150cf) --- act/artifactcache/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/artifactcache/handler.go b/act/artifactcache/handler.go index 3178260b..1f0a6f64 100644 --- a/act/artifactcache/handler.go +++ b/act/artifactcache/handler.go @@ -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)