Skip to content

Commit

Permalink
fix(oci): Populate image information after fetching
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Aug 21, 2023
1 parent 41de9f7 commit 0e81790
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions oci/pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,12 @@ func (ocipack *ociPackage) Pull(ctx context.Context, opts ...pack.PullOption) er
return err
}

// Try resolving the image again after pulling it
image, err = ocipack.handle.ResolveImage(ctx, ocipack.imageRef())
if err != nil {
return err
}

unpack:
// Unpack the image if a working directory has been provided
if len(popts.Workdir()) > 0 {
Expand Down

0 comments on commit 0e81790

Please sign in to comment.