lima-vm / lima-vm/lima

Check if instance exists before offering to edit a template for a new instance

Open
#1,370 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

Right now `limactl start` offers you to edit the template before starting the instance. But when it comes time to instantiate it, it finds that an instance with the same name already exists and throws away the edited template.

It would be more considerate to abort creation before letting the user edit the template:

```console
$ l start template://alpine
? Creating an instance "alpine" Open an editor to review or modify the current configuration
Waiting for Emacs...
FATA[0014] instance "alpine" already exists ("/Users/jan/.lima/alpine")
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.