oras-project / oras

OCI registry client - managing content like artifacts, images, packages
https://oras.land
Apache License 2.0
1.52k stars 181 forks source link

Add OS/Arch information into `oras version` #1536

Closed Wwwsylvia closed 1 day ago

Wwwsylvia commented 1 week ago

As per the ORAS diagnose experience proposal, we should include the OS/Arch information in the output of oras version.

https://github.com/oras-project/oras/blob/5280c67fcef9e1029d539aef03370a31e5df839a/docs/proposals/diagnose-experience.md?plain=1#L81

Example:

$ oras version

ORAS Version:    1.2.0+Homebrew
Go version:      go1.22.3
OS/Arch:         linux/amd64
Git commit:      xxxxxxxxxxxx
Git tree state:  clean