-
Notifications
You must be signed in to change notification settings - Fork 659
limactl start logic is broken in 1.0.4 #3142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why templates would be empty? is this a real use case? But there is also another issue - limactl create recommends to use:
Which is deprecated form:
Sounds like we don't have good test coverage for limactl start output. We use logging which is typically not tested, so we don't test interaction properly. |
Yes, for applications that embed Lima (like Rancher Desktop, or finch), and don't expose it directly to the user. They have no need to bundle generic templates because they will never be used. FWIW, this is how I noticed this was broken.
You are confusing
That is correct. Not sure what the right solution would be. |
Good point.
But why lima start complains about the canonical usage? The previous command was lima create. The instance was not created since the template was missing? It sounds like we try to help by recommending a better command but the result is mess. Maybe it is better to simplify: lima create create an instance, lima start starts an instance of fail.
In qemu-img some tests are using golden output files, including filtered output from the program. If the output changes, you need to update the output file to make the test pass. This avoids unintended output changes. |
It is harder for us because we have an interactive UI that shows a prompt and waits for user input. You can check the output for And #3120 was about fixing the problem that the UI was displayed before the error was reported. So if you skip the UI then the test wouldn't cover this scenario. |
Description
The message about creating an instance is wrong (the instance already exists). And it throws a fatal error when the default template doesn't exist, even though there is no reason to access it.
The original VM seems to start correctly (and is not recreated based of the default template) when the default template exists, but the
INFO
andWARN
lines are still false and misleading.I don't have time to look into this right now, but suspect it is due to #3120.
The text was updated successfully, but these errors were encountered: