zarf-dev / zarf

DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev/
Apache License 2.0
1.42k stars 171 forks source link

Rerunning package create with --max-package-size leaves old files around #3266

Open Racer159 opened 4 days ago

Racer159 commented 4 days ago

Environment

Device and OS: Framework 16 - Ubuntu 24.04 App version: v0.43.1 Kubernetes distro being used: K3d Other:

Steps to reproduce

  1. For a Zarf package with a size >10MB run the following:
zarf package create . --max-package-size=10
zarf package create . --max-package-size=1

Expected result

A split Zarf package is made with only 1MB files

Actual Result

A split Zarf package is made where the first few are 10MB and the next few are 1MB

Visual Proof (screenshots, videos, text, etc)

image

Severity/Priority

Medium (the workaround is to delete all of the Zarf parts before recreate)

Additional Context

None