Skip to content

Commit 8909900

Browse files
committed
changes for failing tests
1 parent 698e08d commit 8909900

File tree

5 files changed

+3
-13
lines changed

5 files changed

+3
-13
lines changed

pkg/imgpkg/cmd/copy_repo_src.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"os"
1010

1111
ctlbundle "carvel.dev/imgpkg/pkg/imgpkg/bundle"
12+
"carvel.dev/imgpkg/pkg/imgpkg/image"
1213
"carvel.dev/imgpkg/pkg/imgpkg/imageset"
1314
ctlimgset "carvel.dev/imgpkg/pkg/imgpkg/imageset"
1415
"carvel.dev/imgpkg/pkg/imgpkg/imagetar"
@@ -17,15 +18,6 @@ import (
1718
"carvel.dev/imgpkg/pkg/imgpkg/plainimage"
1819
"carvel.dev/imgpkg/pkg/imgpkg/registry"
1920
regname "github.com/google/go-containerregistry/pkg/name"
20-
ctlbundle "github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/bundle"
21-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/image"
22-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/imageset"
23-
ctlimgset "github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/imageset"
24-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/imagetar"
25-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/internal/util"
26-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/lockconfig"
27-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/plainimage"
28-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/registry"
2921
)
3022

3123
type SignatureRetriever interface {

pkg/imgpkg/imagedesc/image_intermediate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/google/go-containerregistry/pkg/v1/types"
99
)
1010

11+
// intermediate struct for Image and ImageIndex to convert to imagwithref type for oci image
1112
type ImageIndexIntermediate struct {
1213
Index regv1.ImageIndex
1314
ref string

pkg/imgpkg/imagedesc/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type ImageOrIndex struct {
1818

1919
OrigRef string
2020
}
21+
2122
type ImageWithRef interface {
2223
regv1.Image
2324
Ref() string

pkg/imgpkg/imagetar/tar_reader.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
"github.com/google/go-containerregistry/pkg/name"
1515
v1 "github.com/google/go-containerregistry/pkg/v1"
1616
"github.com/google/go-containerregistry/pkg/v1/layout"
17-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/imagedesc"
18-
"github.com/vmware-tanzu/carvel-imgpkg/pkg/imgpkg/imageutils/verify"
1917
)
2018

2119
type TarReader struct {

pkg/imgpkg/registry/registry.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,6 @@ func (r *SimpleRegistry) MultiWrite(imageOrIndexesToUpload map[regname.Reference
410410
if updatesCh != nil {
411411
rOpts = append(rOpts, regremote.WithProgress(updatesCh))
412412
}
413-
414-
//THIS HERE FINAL PUSHES
415413
return regremote.MultiWrite(overriddenImageOrIndexesToUploadRef, rOpts...)
416414
}
417415

0 commit comments

Comments
 (0)