-
Notifications
You must be signed in to change notification settings - Fork 34
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 the manifest digest in Registry.push()
#144
Comments
We could definitely return a collection of artifacts from the entire interaction - my suggestion would be to put down exactly what you want, make a data class to handle it, and then have it collected in the function here: Line 675 in fd8a83c
It's quite a good idea. |
I think this could be closed following: as it would now return the response+headers including sha of the actual OCI Manifest as demonstrated by this test case: ...sorry I didn't realize this was logged when I submitted the PR 😅 @vsoch kindly consider closing this github issue as resolved. |
Happy to close it - the reason I haven't done a new release yet is because I was waiting for some time to pass to test the new auth backend (not the release bump is a minor patch but still a larger jump than we normally do). If you think it's well tested and good to go I can go ahead. |
Is there a issue tracker of the tests which would be required for it, please? |
We don't have an issue for it - I was mostly keeping it as is (and holding off release) until enough people had been using the new branch. In practice it's hard to test these specific cases because there are so many registries. |
Ack, let see if I can manage to dedicate some cycles to it, will report back 👍 |
That would be fantastic! The registries I use most often are ghcr.io (GitHub packages) and then my communities use GitLab a bit too. The third for me would be Docker Hub. After that, I would say we should consider (maybe find someone to test) each registry provided by a major cloud, minimally AWS / Azure / Google. |
It's often important to correctly identify a recently uploaded artifact. The current
Registry.push()
method, only returns an emptyresponse with the following headers:
The digest returned in the headers does not match the digest of the manifest in the registry though, making it impossible to accurately locate it there.
The text was updated successfully, but these errors were encountered: