diff --git a/pkg/cacheutil/cacheutil.go b/pkg/cacheutil/cacheutil.go index 9b8ae8a073df..e196c0b225e5 100644 --- a/pkg/cacheutil/cacheutil.go +++ b/pkg/cacheutil/cacheutil.go @@ -10,7 +10,7 @@ import ( "github.com/lima-vm/lima/pkg/limayaml" ) -// NerdctlArchive returns the basename of the archive +// NerdctlArchive returns the basename of the archive. func NerdctlArchive(y *limayaml.LimaYAML) string { if *y.Containerd.System || *y.Containerd.User { for _, f := range y.Containerd.Archives { @@ -22,6 +22,8 @@ func NerdctlArchive(y *limayaml.LimaYAML) string { return "" } +// EnsureNerdctlArchiveCache prefetches the archive into the cache. +// // EnsureNerdctlArchiveCache prefetches the nerdctl-full-VERSION-GOOS-GOARCH.tar.gz archive // into the cache before launching the hostagent process, so that we can show the progress in tty. // https://github.com/lima-vm/lima/issues/326