Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit a57ba59

Browse files
committed
Fix panic because of missing Id
1 parent 37037e9 commit a57ba59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

registry/read.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func ReadImage(name string, path string) (*ImageCache, error) {
3333
img, _ := index.Image(hash)
3434
skill.Log.Infof("Loaded image")
3535
return &ImageCache{
36+
Id: hash.String(),
3637
Digest: hash.String(),
38+
Tags: []string{},
3739
Name: name,
3840
Image: &img,
3941
ImagePath: path,

0 commit comments

Comments
 (0)