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

Don't silently ignore errors determining size in TryReuseBlob #2709

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

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Feb 6, 2025

Returning the size required by the TryReuseBlob/PutBlob API; otherwise we could put -1 into manifests.

  • When looking for inexact matches, this will cause the matches to be skipped.
  • When checking for an exact match, this will cause an upload failure; we don't have any other way to handle pre-existing blobs on the destination.

For now, completely untested.

Copy link
Collaborator Author

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes to self:

docker/docker_client.go Outdated Show resolved Hide resolved
docker/docker_client.go Show resolved Hide resolved
@mtrmac mtrmac marked this pull request as ready for review February 17, 2025 17:58
When looking for inexact matches, this will cause the matches to be skipped.
When checking for an exact match, this will cause an upload failure;
we don't have any other way to handle pre-existing blobs on the destination.

Signed-off-by: Miloslav Trmač <[email protected]>
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.

1 participant