Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 60a1f22

Browse files
author
Ulysses Souza
authored
Merge pull request #571 from rumpl/chore-update-cnab-to-oci
Update cnab-to-oci
2 parents 4dc61a6 + 62a24c7 commit 60a1f22

File tree

167 files changed

+30306
-3925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+30306
-3925
lines changed

Gopkg.lock

Lines changed: 39 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ required = ["github.com/wadey/gocovmerge"]
3333

3434
[[override]]
3535
name = "github.com/containerd/containerd"
36-
source = "github.com/simonferquel/containerd"
37-
revision = "42c3614d58767e96c1752977fed94d0b140a0173"
36+
branch = "master"
3837

3938
[[override]]
4039
name = "github.com/docker/cli"
@@ -106,7 +105,11 @@ required = ["github.com/wadey/gocovmerge"]
106105
[[override]]
107106
name = "gopkg.in/yaml.v2"
108107
source = "https://github.com/simonferquel/yaml"
109-
revision="c86e64ed9581b7588e736f0c3e6ecc02cc22996e"
108+
revision = "c86e64ed9581b7588e736f0c3e6ecc02cc22996e"
109+
110+
[[override]]
111+
name = "github.com/opencontainers/runtime-spec"
112+
revision = "29686dbc5559d93fb1ef402eeda3e35c38d75af4"
110113

111114
[[constraint]]
112115
name = "github.com/spf13/pflag"

internal/commands/push.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func runPush(dockerCli command.Cli, name string, opts pushOptions) error {
117117
return errors.Wrapf(err, "pushing to %q", retag.invocationImageRef.String())
118118
}
119119

120-
resolverConfig := remotes.NewResolverConfigFromDockerConfigFile(dockerCli.ConfigFile(), opts.registry.insecureRegistries...)
120+
resolver := remotes.CreateResolver(dockerCli.ConfigFile(), opts.registry.insecureRegistries...)
121121
var display fixupDisplay = &plainDisplay{out: os.Stdout}
122122
if term.IsTerminal(os.Stdout.Fd()) {
123123
display = &interactiveDisplay{out: os.Stdout}
@@ -129,13 +129,13 @@ func runPush(dockerCli command.Cli, name string, opts pushOptions) error {
129129
fixupOptions = append(fixupOptions, remotes.WithComponentImagePlatforms(platforms))
130130
}
131131
// bundle fixup
132-
err = remotes.FixupBundle(context.Background(), bndl, retag.cnabRef, resolverConfig, fixupOptions...)
132+
err = remotes.FixupBundle(context.Background(), bndl, retag.cnabRef, resolver, fixupOptions...)
133133

134134
if err != nil {
135135
return errors.Wrapf(err, "fixing up %q for push", retag.cnabRef)
136136
}
137137
// push bundle manifest
138-
descriptor, err := remotes.Push(newMuteLogContext(), bndl, retag.cnabRef, resolverConfig.Resolver, true, withAppAnnotations)
138+
descriptor, err := remotes.Push(newMuteLogContext(), bndl, retag.cnabRef, resolver, true, withAppAnnotations)
139139
if err != nil {
140140
return errors.Wrapf(err, "pushing to %q", retag.cnabRef)
141141
}

internal/store/bundle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (b *bundleStore) LookupOrPullBundle(ref reference.Named, pullRef bool, conf
7272
return nil, err
7373
}
7474
}
75-
bndl, err := remotes.Pull(context.TODO(), reference.TagNameOnly(ref), remotes.NewResolverConfigFromDockerConfigFile(config, insecureRegistries...).Resolver)
75+
bndl, err := remotes.Pull(context.TODO(), reference.TagNameOnly(ref), remotes.CreateResolver(config, insecureRegistries...))
7676
if err != nil {
7777
return nil, errors.Wrap(err, ref.String())
7878
}

vendor/github.com/containerd/cgroups/LICENSE

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)