Closed frewilhelm closed 1 day ago
However, one could also argue that this part of the error message cannot determine digest: is sufficient to indicate that the resource cannot be referenced unambiguously.
Errors should as clearly as possible state what is the issue and directly point to the cause. It is fine to give more information and an explanation in addition, but at first hand there should be "the tag latest
is not supported in a resource definition.
I took a look here and TBH i dont understand why its impossible to determine a digest. It should be able to resolve from latest to the currently fetched sha256 digest and use that as a reference IMO. WDYT?
I mistakenly assumed that gcr
also resolves a latest
tag. This is not the case. There is no latest
tag at all. So the issue is unnecessary.
Description Adding a resource of type
ociImage
that is tagged withlatest
returns the following error:(inspired by this example)
Using the same command without an unambiguously tag, e.g.
1.10
, resolves the error. It is reasonable that it is not possible to add an image with the taglatest
as a resource, as the tag can never uniquely reference a resource. However, the error message is confusing, as it is not clear that the tag is the problem.That is why I would propose a clear and precise error message that the tag
latest
is not supported. However, one could also argue that this part of the error messagecannot determine digest:
is sufficient to indicate that the resource cannot be referenced unambiguously.Done Criteria