From 665831a42ba55191cacf3af5be9e4199eae52881 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Mon, 12 May 2025 06:57:02 +0000 Subject: [PATCH 1/2] fix: add os/arch in version command Signed-off-by: Junjie Gao --- cmd/notation/version.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/notation/version.go b/cmd/notation/version.go index 96cc91f6c..76eb48a6c 100644 --- a/cmd/notation/version.go +++ b/cmd/notation/version.go @@ -38,6 +38,7 @@ func runVersion() { fmt.Printf("Version: %s\n", version.GetVersion()) fmt.Printf("Go version: %s\n", runtime.Version()) + fmt.Printf("OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH) if version.GitCommit != "" { fmt.Printf("Git commit: %s\n", version.GitCommit) From 006e8236571925254b4f55f7301d2943e30e04e1 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Mon, 12 May 2025 07:03:26 +0000 Subject: [PATCH 2/2] fix: update docs Signed-off-by: Junjie Gao --- specs/cmd/version.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs/cmd/version.md b/specs/cmd/version.md index a51ee1ae2..da6d9e096 100644 --- a/specs/cmd/version.md +++ b/specs/cmd/version.md @@ -11,6 +11,7 @@ Notation - a tool to sign and verify artifacts. Version: Go version: go +OS/Arch: / Git commit: ``` @@ -41,5 +42,6 @@ Notation - a tool to sign and verify artifacts. Version: 1.0.0 Go Version: go1.19.2 +OS/Arch: linux/amd64 Git commit: 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a ```