-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return success when force deleting a non-existent blob/manifest #722
Milestone
Comments
qweeah
changed the title
return success when deleting a non-extent blob/manifest
return success when deleting a non-existent blob/manifest
Dec 15, 2022
qweeah
changed the title
return success when deleting a non-existent blob/manifest
return success when force deleting a non-existent blob/manifest
Dec 15, 2022
Here are the exit codes of the $ rm not-exist
rm: cannot remove 'not-exist': No such file or directory
$ echo $?
1
$ rm -f not-exist
$ echo $?
0
$ rm /dev/null
rm: cannot remove '/dev/null': Permission denied
$ echo $?
1
$ rm -f /dev/null
rm: cannot remove '/dev/null': Permission denied
$ echo $?
1 |
Agree to change the return to success in the case above. How can we describe the output message exactly? |
Taking
|
shizhMSFT
pushed a commit
that referenced
this issue
Jan 12, 2023
Resolves #722 Signed-off-by: Billy Zha <jinzha1@microsoft.com>
qweeah
added a commit
to qweeah/oras
that referenced
this issue
Jan 13, 2023
Resolves oras-project#722 Signed-off-by: Billy Zha <jinzha1@microsoft.com>
TerryHowe
pushed a commit
to TerryHowe/oras
that referenced
this issue
Feb 2, 2023
Resolves oras-project#722 Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When force deleting via
oras manifest/blob delete
, if the target reference is not found in the remote registry, then user will see an error message like below:The returned value should indicate success if successfully resolving the reference and registry returns not found.
@FeynmanZhou
The text was updated successfully, but these errors were encountered: