From e7b2b880b9988f42f1db9330b78056b623ecbd9f Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 19 Jun 2026 02:27:37 +0900 Subject: [PATCH] features: propagate version from the root urfave/cli command Fix #5329 Fix #5331 Signed-off-by: Akihiro Suda (cherry picked from commit 7dda063c9a34f2b2739515cbc2049c5f7e6c3bf0) Signed-off-by: Akihiro Suda (cherry picked from commit c8a2d9bebcc6cb7e538239914ab96cfc9025d9af) Signed-off-by: Akihiro Suda --- features.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features.go b/features.go index b636466bf..07fc6dc6e 100644 --- a/features.go +++ b/features.go @@ -33,7 +33,7 @@ var featuresCommand = cli.Command{ OCIVersionMin: "1.0.0", OCIVersionMax: specs.Version, Annotations: map[string]string{ - runcfeatures.AnnotationRuncVersion: version, + runcfeatures.AnnotationRuncVersion: context.App.Version, runcfeatures.AnnotationRuncCommit: gitCommit, runcfeatures.AnnotationRuncCheckpointEnabled: "true", },