Skip to content
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

Ignore 404 NOT FOUND when trying to delete a tag #201

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spkane
Copy link

@spkane spkane commented Jan 6, 2022

Signed-off-by: Sean P. Kane sean@superorbital.io

- What I did

Added code to log, but otherwise ignore 404 NOT FOUND errors when deleting tags.

This addresses some additional functionality that was mentioned in:
#58

- How I did it

Via a few lines of Go code

- How to verify it

Try and run a command like this twice against an existing image tag (or just run it against something that does not exist).

hub-tool tag rm -f myrepo/myimage:mytag
hub-tool tag rm -f myrepo/myimage:mytag

- Description for the changelog

  • Do not throw fatal errors when trying to delete a non-existent image tag.

Signed-off-by: Sean P. Kane <sean@superorbital.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant