Skip to content

Commit

Permalink
update references
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
  • Loading branch information
shizhMSFT committed Apr 8, 2021
1 parent c1133fe commit fd3aaf3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/discover.go
Expand Up @@ -103,7 +103,7 @@ func printDiscoveredReferences(desc ocispec.Descriptor, refs []remotes.Discovere
}
output := struct {
Digest digest.Digest `json:"digest"`
References []reference `json:"links"`
References []reference `json:"references"`
}{
Digest: desc.Digest,
References: make([]reference, len(refs)),
Expand Down
2 changes: 1 addition & 1 deletion docs/artifact-manifest.md
Expand Up @@ -200,7 +200,7 @@ Pulling an artifact is the same as the regular `oras pull`. This example
oras discover \
--output-json \
--artifact-type application/x.example.signature.v0 \
localhost:5000/hello-world:latest | jq -r .links[0].digest)
localhost:5000/hello-world:latest | jq -r .references[0].digest)
```

- Generates output:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.16
replace (
// WARNING! Do NOT replace these without also replacing their lines in the `require` stanza below.
// These `replace` stanzas are IGNORED when this is imported as a library
github.com/containerd/containerd => github.com/notaryproject/containerd v1.5.0-beta.4.0.20210401070753-d219eb99ca3b
github.com/containerd/containerd => github.com/shizhMSFT/containerd v1.2.1-0.20210408082833-9fda821b6398
github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d
github.com/docker/docker => github.com/moby/moby v17.12.0-ce-rc1.0.20200618181300-9dc6525e6118+incompatible
github.com/opencontainers/artifacts => github.com/aviral26/artifacts v0.0.0-20210331072334-fac4f3a4da4e
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -372,8 +372,6 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8m
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
github.com/ncw/swift v1.0.47/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM=
github.com/notaryproject/containerd v1.5.0-beta.4.0.20210401070753-d219eb99ca3b h1:DNxwQqcOtj4Wrbnj6tFbMJcGNojeOiZYHUQVAfqjHZc=
github.com/notaryproject/containerd v1.5.0-beta.4.0.20210401070753-d219eb99ca3b/go.mod h1:rkfsydnYZBb6tU7iTyyTvQcoMXezKdDmX7+lEE1SyUg=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down Expand Up @@ -448,6 +446,8 @@ github.com/safchain/ethtool v0.0.0-20190326074333-42ed695e3de8/go.mod h1:Z0q5wiB
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo=
github.com/shizhMSFT/containerd v1.2.1-0.20210408082833-9fda821b6398 h1:DjG1EF2zRz+0gY5uDXFT/vXcUx5dd41eIa40Vt0AyfA=
github.com/shizhMSFT/containerd v1.2.1-0.20210408082833-9fda821b6398/go.mod h1:rkfsydnYZBb6tU7iTyyTvQcoMXezKdDmX7+lEE1SyUg=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
Expand Down

0 comments on commit fd3aaf3

Please sign in to comment.