-
Notifications
You must be signed in to change notification settings - Fork 383
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
Define an error to allow an external reference #1029
Define an error to allow an external reference #1029
Conversation
@vrothberg @mtrmac PTAL |
I think we need to fix it in
|
you could see this containers/podman#7337 (comment) |
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.
I’m afraid I have no idea what is the problem, the solution, or how this makes any sense.
- Why make a check for
len(index.Manifests)
, and use the[0]
member inside a loop iterating through array? - If the user asks for a specific
ref.image
, how does it make sense to return an entry that does not have that name? - How does it make sense for a “find” operation to edit the data?
If this is to influence Podman’s heuristics for deciding how to tag the result of a pull, those are entirely up to Podman and c/image is trying fairly hard to stay away.
307fa19
to
ff20299
Compare
Signed-off-by: zhangguanzhang <[email protected]>
ff20299
to
0836b39
Compare
I change it,I need this error type to judge in podman |
I can’t see how this relates to the linked Podman issue at all. If Podman is using file names instead of other data it was supplied, why can’t it just stop doing that? |
this will be ok
and this image name will be but if use a name to override, afer this , the image's name should be
it does not run ok in the function in https://github.com/containers/podman/blob/master/libpod/runtime_img.go#L288-L294 |
So what’s actually wrong about that situation? If the ref is for $path
(Perhaps see also the conversation around containers/podman#6811 (comment) , but I suspect the questions I have are at a more basic level.) |
I think when |
@mtrmac What is your latest feeling on this? |
containers/podman#7386 (comment) – I don’t really understand what’s going on, even what’s wrong, my best guess is that Podman is internally confused about the meaning of the “name” parameter. |
Fixes: containers/podman#7337
more detail could see containers/podman#7337 (comment)
Signed-off-by: zhangguanzhang [email protected]