copacetic icon indicating copy to clipboard operation
copacetic copied to clipboard

[REQ] Investigate additional patch layers

Open ashnamehrotra opened this issue 9 months ago • 1 comments

What kind of request is this?

None

What is your request or suggestion?

When patching alpine images with and without a report, two patched layers are created. The same happens for patching debian/rpm images without a report. Would it be possible to squash all additional layers into one?

Are you willing to submit PRs to contribute to this feature request?

  • [ ] Yes, I am willing to implement it.

ashnamehrotra avatar Mar 19 '25 20:03 ashnamehrotra

This is due to patching w/o vuln reports having an additional run step to check if error_log file exists. This does not happen if vuln reports are specified. https://github.com/project-copacetic/copacetic/blob/d785a5cd6813f7fd4c79fcaf96336dfe441111ed/pkg/pkgmgr/rpm.go#L496

since this is a cosmetic thing, i wouldn't say high priority but can we merge with previous run command?

sozercan avatar Mar 21 '25 19:03 sozercan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 03 '25 20:07 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 02 '25 03:09 github-actions[bot]