Skip to content

Conversation

@cgwalters
Copy link
Collaborator

No description provided.

@bootc-bot bootc-bot bot requested a review from gursewak1997 November 9, 2025 14:27
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces some nice improvements to the Justfile. The refactoring to use a common base_buildargs variable for podman build commands makes the file cleaner and more consistent. The addition of the clean-local-images target is also a useful utility.

I have one suggestion to make the new clean-local-images target more efficient and concise.

Additionally, this PR removes the build-disk-image, validate-local, and build-disk targets. Since the PR description is empty, it would be helpful to add a brief explanation for these removals to provide more context for reviewers and for future reference.

Comment on lines +82 to +83
podman images --filter "label={{testimage_label}}"
podman images --filter "label={{testimage_label}}" --format "{{{{.ID}}" | xargs -r podman rmi -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The clean-local-images target runs podman images twice with the same filter. This is inefficient and can be simplified.

The first command displays the images, and the second one pipes the IDs to podman rmi. You can achieve a similar result more efficiently by using the -q (--quiet) flag to get only the image IDs and piping them directly to xargs. The podman rmi command will output the IDs of the images it removes, which provides sufficient feedback to the user.

    podman images -q --filter "label={{testimage_label}}" | xargs -r podman rmi -f

To make it easeier to clean things up.

Signed-off-by: Colin Walters <[email protected]>
These are dead code.

Signed-off-by: Colin Walters <[email protected]>
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.

1 participant