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
Validate extra destination tags before performing push operations #2236
ORAS performed push and tagging operations before validating extra tags. As a result, invalid tags caused the command to fail after modifying the OCI layout.
What did you expect to happen?
ORAS should validate all extra tags before pushing or modifying the OCI layout. If any tag is invalid, it should return a clear error without making changes.
How can we reproduce it?
Run this command :
./oras manifest index create --oci-layout /tmp/test-oci-extra:v1,,invalid@@tag
Notice that ORAS pushes and tags the image before returning an error.
Check /tmp/test-oci-extra/index.json. You should see that the image was written even though the command failed.
Activity