-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
The manifest should add the annotations passed in when there are no blobs specified
➜ oras version
Version: 0.15.0+unreleased
Go version: go1.19
Git commit: 9e12d92c3f25ffea67b9bce073c5c46b9d3c355c
Git tree state: clean
➜ oras attach --annotation "test=value" \
sajay.azurecr.io/hello-world-attach@sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4 \
--artifact-type example/annotation \
--annotation test2=value2
Uploading empty artifact
Attached to sajay.azurecr.io/hello-world-attach@sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4
Digest: sha256:93c4a77febf73c80a70839bed23911dd83f79bda72e7bc96bb1e64c88981fd27
➜ oras manifest fetch --pretty sajay.azurecr.io/hello-world-attach@sha256:93c4a77febf73c80a70839bed23911dd83f79bda72e7bc96bb1e64c88981fd27
{
"mediaType": "application/vnd.cncf.oras.artifact.manifest.v1+json",
"artifactType": "example/annotation",
"blobs": [],
"subject": {
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"digest": "sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4",
"size": 525
},
"annotations": {
"io.cncf.oras.artifact.created": "2022-10-03T21:47:26Z"
}
}
qweeah
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working