-
Notifications
You must be signed in to change notification settings - Fork 82
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
How to handle multiple manifests with the same ref.name #164
Comments
they are regarded like an image tag, and therefore should be unique. Though there might be a situation where multiples are valid i.e. same name for different architectures, or some other distinguishing attribute. |
In this Is this example not allowed to exist? If that is the case, we should add a unique validation to |
@q384566678 These are two different images, with the same ref. The UI needs to take this into account. The unique item here is the digest, not the ref. Imagine if this were an annotation unrelated to OCI and you wanted to expose a selection based on that annotation. Also, imagine the case where the index is assembled from two separate sources that may disagree on the ref. From a UX perspective, the user should be able to disambiguate these cases. |
@stevvooe So the best basis for the search is not |
@q384566678 What if I have another attribute The problem with requiring ref to be unique is that it kicks this problem down the road for all other annotations. It becomes a special annotation, which is not the goal. As far as
By supporting image selection along a number of attributes, we can support a much wider range of use cases and ensure that they are handled broadly. |
@stevvooe If it is to allow users to enter the search content, or may have multiple results, which in return to our initial question, how to deal with multiple results?
|
@vbatts @stevvooe @xiekeyang @coolljt0725 @jonboulle @wking Do you have any suggestions? |
@q384566678 The above comment is a suggestion. Selecting items from a list isn't wildly complicated. In the vast number of cases, only a single result is returned:
The other approach is to simply take the first match:
Limiting uniqueness over an arbitrary annotation is simply not an option. Do so will prevent future use cases of image indexes to be useful. |
When the implementation of
create
orunpack
, if according to the input ref, in theindex.json
can be found in a number of correspondence, this situation should be how to deal with? Is it supposed to handle all? Or deal with one? I was wondering if it should be added in the specification to increase the limit onorg.opencontainers.ref.name
?cc/@opencontainers/image-tools-maintainers
The text was updated successfully, but these errors were encountered: