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 36af408 commit 7f2ecfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/v1/mutate/mutate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"time"

"github.com/google/go-containerregistry/internal/gzip"
"github.com/google/go-containerregistry/pkg/logs"
v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/google/go-containerregistry/pkg/v1/empty"
"github.com/google/go-containerregistry/pkg/v1/match"
Expand Down Expand Up @@ -220,6 +221,7 @@ func CreatedAt(base v1.Image, created v1.Time) (v1.Image, error) {
// If a caller doesn't read the full contents, they should Close it to free up
// resources used during extraction.
func Extract(img v1.Image) io.ReadCloser {
logs.Debug.Printf("mutate: extract %T", img)
pr, pw := io.Pipe()

go func() {
Expand Down

0 comments on commit 7f2ecfc

Please sign in to comment.