fix: tart backend stops VM to early (#76)

This commit is contained in:
ChristopherHX
2025-03-29 13:39:47 +01:00
committed by GitHub
parent fcf370fcd1
commit a1935498a7

View File

@@ -101,7 +101,8 @@ func (vm *VM) Start(ctx context.Context, config Config, _ *Env, customDirectoryM
runArgs = append(runArgs, vm.id)
cmd := exec.CommandContext(ctx, tartCommandName, runArgs...)
// Use Background context, because we want to keep the VM running
cmd := exec.CommandContext(context.Background(), tartCommandName, runArgs...)
common.Logger(ctx).Debug(strings.Join(runArgs, " "))