You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oras pull: leaves partial output after duplicate-name failure on multi-platform artifacts #2193
When pulling a multi-platform OCI artifact without specifying --platform, if multiple platform manifests contain files with the same name, oras pull fails with duplicate name but leaves one of the files in the output directory.
For example, an index containing a tool file for both linux/amd64 and linux/arm64 produces:
Error: tool: duplicate name
but pulled/tool remains on disk.
This means a failed pull can leave partial output from one of the platforms.
What did you expect to happen?
When oras pull fails because of a duplicate output filename, it should not leave newly-created partial files from the failed pull in the output directory.
Existing files should retain their normal overwrite behavior.
How can we reproduce it?
Start a local OCI registry on localhost:7000.
Create two artifacts with the same filename (tool), one with platform linux/amd64 and one with platform linux/arm64
Create an OCI index containing both platform manifests.
Activity