Skip to content

Commit d2b39e4

Browse files
authored
Merge pull request moby#5095 from thaJeztah/no_splitobject
ociLayoutResolver.info: remove use of reference.SplitObject
2 parents 719c532 + 316b5f5 commit d2b39e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/containerimage/ocilayout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (r *ociLayoutResolver) info(ctx context.Context, ref reference.Spec) (conte
105105
err := r.withCaller(ctx, func(ctx context.Context, caller session.Caller) error {
106106
store := sessioncontent.NewCallerStore(caller, "oci:"+r.store.StoreID)
107107

108-
_, dgst := reference.SplitObject(ref.Object)
108+
dgst := ref.Digest()
109109
if dgst == "" {
110110
return errors.Errorf("reference %q does not contain a digest", ref.String())
111111
}

0 commit comments

Comments
 (0)