@@ -143,12 +143,14 @@ func Start(ctx context.Context, inst *store.Instance) error {
143
143
if nerdctlArchiveCache != "" {
144
144
args = append (args , "--nerdctl-archive" , nerdctlArchiveCache )
145
145
}
146
- location , errs := downloadAndCacheArchiveForArch (y .ExtraArchives , * y .Arch , "extrArchive" )
147
- if location == "" {
148
- return fmt .Errorf ("failed to download the extraArchive archive, attempted %d candidates, errors=%v" ,
149
- len (y .ExtraArchives ), errs )
146
+ if len (y .ExtraArchives ) > 0 {
147
+ location , errs := downloadAndCacheArchiveForArch (y .ExtraArchives , * y .Arch , "extrArchive" )
148
+ if location == "" {
149
+ return fmt .Errorf ("failed to download the extraArchive archive, attempted %d candidates, errors=%v" ,
150
+ len (y .ExtraArchives ), errs )
151
+ }
152
+ args = append (args , "--extra-archive" , location )
150
153
}
151
- args = append (args , "--extra-archive" , location )
152
154
153
155
args = append (args , inst .Name )
154
156
haCmd := exec .CommandContext (ctx , self , args ... )
0 commit comments