Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: ignoring dangling images from image list #19

Conversation

ashishkhuraishy
Copy link

@ashishkhuraishy ashishkhuraishy commented Jul 18, 2024

[FIX] App panics on startup

When one or more dangling images where found, the app crashed on startup because here trying to access out of bounds object from an empty array

Solved it by only considering non-dangling images as part of image list, such that there would be atleast one valid tag on the image

fixes #18

ajayd-san and others added 3 commits July 17, 2024 17:29
update install instructions
Update install from source instructions to `HEAD` (instead of commit ID)
Signed-off-by: ashishkhuraishy <ashishkhuraishy@gmai.com>
@ajayd-san
Copy link
Owner

Hey, thanks for the PR.

Also I'd like a test case if you can add one.

Could you also add a check in types.transformListNames (check if input array is empty and return "" if it is).

Push your changes to dangling-images-hotfix and I'll merge to main by tonight.

thanks!

@ashishkhuraishy ashishkhuraishy changed the base branch from main to dangling-images-hotfix July 19, 2024 05:03
@ashishkhuraishy
Copy link
Author

@ajayd-san the changes for fix + some linting errors has been fixed

@ajayd-san ajayd-san merged commit df9ed49 into ajayd-san:dangling-images-hotfix Jul 19, 2024
3 checks passed
@ajayd-san
Copy link
Owner

Perfect. Thanks for your contribution!

@ajayd-san ajayd-san mentioned this pull request Jul 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG 🐞: Crash on launch
2 participants