Closed qweeah closed 5 months ago
I'd like to work on this issue
--image-spec should be default to auto, which represents v1.0 if --config is used and --artifact-type not used. Otherwise v1.1
This is to make oras push --config xxx
workable to avoid breaking change. Adding https://github.com/oras-project/oras/issues/1327 to remove this workaround in v2.0.
What is the version of your ORAS CLI
v1.2.0
What would you like to be added?
oras push
supports pushing an artifact withoutartifactType
even when OCI image spec v1.1 is specified.Why is this needed for ORAS?
According to the guidance, v1.1 artifact should always contains an
artifactType
, so 1)--config
MUST not to be used with--image-spec v1.1
if--artifac-type
is not specified, return error when encounter this. 2)--image-spec
should be default toauto
, which representsv1.0
if--config
is used and--artifact-type
not used. Otherwisev1.1
Are you willing to submit PRs to contribute to this feature?