Skip to content

Commit 078126a

Browse files
authored
Merge pull request #37 from infosiftr/fix-cache
Fix the cache broken by the ociref changes
2 parents 1456103 + 5328172 commit 078126a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/builds/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func loadCacheFromFile() error {
171171

172172
for img, index := range cache.Indexes {
173173
index := index // https://github.com/golang/go/issues/60078
174-
fun, _ := cacheResolve.LoadOrStore(img, sync.OnceValues(func() (*ocispec.Index, error) {
174+
fun, _ := cacheResolve.LoadOrStore(img.String(), sync.OnceValues(func() (*ocispec.Index, error) {
175175
return index, nil
176176
}))
177177
index2, err := fun.(func() (*ocispec.Index, error))()

0 commit comments

Comments
 (0)