blob nil on repeat
This commit is contained in:
parent
31d9079c7c
commit
87dfc1c468
@ -371,7 +371,7 @@ func getBlobFromContext(ctx *context.Context) (*packages_model.PackageFileDescri
|
||||
// https://github.com/opencontainers/distribution-spec/blob/main/spec.md#checking-if-content-exists-in-the-registry
|
||||
func HeadBlob(ctx *context.Context) {
|
||||
blob, err := getBlobFromContext(ctx)
|
||||
fmt.Println("HeadBlob: ", blob.File.CompositeKey)
|
||||
fmt.Println("HeadBlob: ", ctx.Params("digest"))
|
||||
if err != nil {
|
||||
fmt.Println("getBlobFromContext err: ", err.Error())
|
||||
if err == container_model.ErrContainerBlobNotExist {
|
||||
|
Loading…
Reference in New Issue
Block a user