New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move image digests resolution to backend #10026
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - small comment re: duplicated code
cmd/compose/convert.go
Outdated
@@ -141,8 +141,9 @@ func runConvert(ctx context.Context, backend api.Service, opts convertOptions, s | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete lines 130-141 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes indeed, my bad
c43cb10
to
1f2f68f
Compare
Not sure if useful, but there's also |
@thaJeztah thanks, this is exactly what I was looking for! 🥰 |
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
e25e5be
to
8e57c6e
Compare
Make sure to double check in the cli as well as at some point resolution was moved; check for "no-resolve-image" (I think) on the docker cli (I'm just away from my keyboard right now 😬😅) |
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
8e57c6e
to
1540ddf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
switch options.Format { | ||
case "json": | ||
return json.MarshalIndent(project, "", " ") | ||
case "yaml": | ||
return yaml.Marshal(project) | ||
default: | ||
return nil, fmt.Errorf("unsupported format %q", options) | ||
return nil, fmt.Errorf("unsupported format %q", options.Format) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter suddenly noticed this bug, while it existed before ... weird
What I did
introduced
ResolveImageDigests
in the API and moved image digest resolution to the backendlonger terms goal is to use
dockercli.RegistryClient()
to replacecnab-to-oci
dependency(not mandatory) A picture of a cute animal, if possible in relation with what you did