-
Notifications
You must be signed in to change notification settings - Fork 11
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
Skip artifacts that don't have proper names #562
Conversation
Fixing kairos-io/kairos#3167 Signed-off-by: Dimitris Karakasilis <[email protected]>
if len(versions) < 1 { | ||
// skip badly named artifacts that may not have a software version | ||
// https://github.com/kairos-io/kairos/issues/3167#issuecomment-2633282993 | ||
if len(versions) < 2 { |
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.
some lines below, we assume there is versions[1]
leading to:
panic: runtime error: index out of range [1] with length 1
when that's not the case.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #562 +/- ##
==========================================
+ Coverage 52.50% 52.55% +0.04%
==========================================
Files 19 19
Lines 1996 1998 +2
==========================================
+ Hits 1048 1050 +2
Misses 818 818
Partials 130 130 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
@@ -133,6 +133,7 @@ | |||
"sha256-5cc0764ac2e7893fbb1246967dcef6d53736fcc86c1c436b976c3aab26824368.sig", | |||
"tumbleweed-core-arm64-rpi4-v2.4.2-rc1-img", | |||
"leap-15.5-standard-amd64-generic-v2.4.2-rc1-k3sv1.26.9-k3s1", | |||
"leap-15.5-standard-amd64-generic-v2.4.2-rc1", |
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.
this fails without the fix below
Fixing kairos-io/kairos#3167