Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

check for blob existence in registry before uploading #171

Conversation

MichaelKopfMkf
Copy link
Contributor

I noticed oras-py uploads blobs even when they already exist in the registry.
As this is an unwanted behaviour I added a check with a HEAD request to see if a blob (layer) already exists for a given container.

Signed-off-by: Michael Kopf <michael.kopf@vector.com>
@MichaelKopfMkf MichaelKopfMkf force-pushed the check_if_layer_exists_before_uploading branch from 363922a to b6eea57 Compare December 3, 2024 13:00
@MichaelKopfMkf MichaelKopfMkf marked this pull request as ready for review December 3, 2024 13:01
@vsoch vsoch merged commit 461dd48 into oras-project:main Dec 3, 2024
5 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants