From a1935498a71cfba0d9a27bd6720e4fe55a85ca5b Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Sat, 29 Mar 2025 13:39:47 +0100 Subject: [PATCH] fix: tart backend stops VM to early (#76) --- pkg/tart/vm_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/tart/vm_darwin.go b/pkg/tart/vm_darwin.go index bdeab813..446acea8 100644 --- a/pkg/tart/vm_darwin.go +++ b/pkg/tart/vm_darwin.go @@ -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, " "))