features: propagate version from the root urfave/cli command

Fix #5329
Fix #5331

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 7dda063c9a)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit c8a2d9bebc)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2026-06-19 02:27:37 +09:00
parent 670f2cbef8
commit bb107ff165
+1 -1
View File
@@ -33,7 +33,7 @@ var featuresCommand = cli.Command{
OCIVersionMin: "1.0.0", OCIVersionMin: "1.0.0",
OCIVersionMax: specs.Version, OCIVersionMax: specs.Version,
Annotations: map[string]string{ Annotations: map[string]string{
runcfeatures.AnnotationRuncVersion: version, runcfeatures.AnnotationRuncVersion: context.App.Version,
runcfeatures.AnnotationRuncCommit: gitCommit, runcfeatures.AnnotationRuncCommit: gitCommit,
runcfeatures.AnnotationRuncCheckpointEnabled: "true", runcfeatures.AnnotationRuncCheckpointEnabled: "true",
}, },