-
Notifications
You must be signed in to change notification settings - Fork 692
bugfix:fix limactl panic because of invalid digest #3779
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
af44a14
to
52fc827
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, much better. Make the unit test separate, and it should be OK
b8a0ed8
to
6972b1f
Compare
done. thanks |
pkg/limayaml/validate_test.go
Outdated
@@ -73,6 +73,15 @@ func TestValidateMinimumLimaVersion(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestValidateDigest(t *testing.T) { | |||
images := `images: [{"location": "/",digest: "69f31d3208895e5f646e345fbc95190e5e311ecd1359a4d6ee2c0b6483ceca03"}]` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The location seems invalid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @ningmingxiao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, I think we can create another pr to verify location. @AkihiroSuda
207c8a2
to
38f4d9f
Compare
Signed-off-by: ningmingxiao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
use wrong config