Skip to content

fix: Prevent panic when validating minimumLimaVersion #3667

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

Conversation

alexandear
Copy link
Member

When version.Version is default (<unknown>), limaVersion.String() panics because limaVersion is nil.

Fixes #3665

@alexandear alexandear force-pushed the fix/panic-minimum-lima-version branch from 19b3b12 to 8e172d2 Compare June 30, 2025 18:00
@AkihiroSuda
Copy link
Member

Merged #3666

@alexandear alexandear closed this Jul 1, 2025
@alexandear alexandear deleted the fix/panic-minimum-lima-version branch July 1, 2025 08:57
@afbjorklund
Copy link
Member

These tests are good, and we would need something similar to fix the original version issue here.

i.e. not setting Version can be avoided (with make), but detached HEAD should be supported...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: runtime error: invalid memory address At pkg/limayaml/validate.go:47
3 participants