diff options
author | ChristopherHX <christopher.homberger@web.de> | 2024-03-05 07:04:54 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-11-07 16:25:15 +0100 |
commit | d42e8f05fc957199016709243fd2e68deebe91af (patch) | |
tree | 0a32a82bf0d131e16696afc280315b602af71758 | |
parent | Merge pull request 'fix: return an error when the argument count is wrong' (#... (diff) | |
download | forgejo-act-d42e8f05fc957199016709243fd2e68deebe91af.tar.xz forgejo-act-d42e8f05fc957199016709243fd2e68deebe91af.zip |
fix: docker buildx cache restore not working (#2236)
* To take effect artifacts v4 pr is needed with adjusted claims
(cherry picked from commit 75e4ad93f4c6ba51a7a64f12335dd0268dd7465a)
-rw-r--r-- | pkg/artifactcache/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/artifactcache/handler.go b/pkg/artifactcache/handler.go index 3178260..1f0a6f6 100644 --- a/pkg/artifactcache/handler.go +++ b/pkg/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) |