Skip to content

Commit

Permalink
Log img type in mutate.Extract()
Browse files Browse the repository at this point in the history
Go subclassing with partials is rather hardcore here
  • Loading branch information
abitrolly committed Aug 17, 2022
1 parent c43fba1 commit 513d71d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crane/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package crane
import (
"io"

"github.com/google/go-containerregistry/pkg/logs"
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/google/go-containerregistry/pkg/v1/mutate"
)
Expand All @@ -41,6 +42,7 @@ func Export(img v1.Image, w io.Writer) error {
_, err = io.Copy(w, rc)
return err
}
logs.Debug.Printf("mutate: extracting %T", img)
fs := mutate.Extract(img)
_, err = io.Copy(w, fs)
return err
Expand Down

0 comments on commit 513d71d

Please sign in to comment.