Skip to content

Commit c8a2d9b

Browse files
committed
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 7dda063) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent 8e155ff commit c8a2d9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var featuresCommand = cli.Command{
3333
OCIVersionMin: "1.0.0",
3434
OCIVersionMax: specs.Version,
3535
Annotations: map[string]string{
36-
runcfeatures.AnnotationRuncVersion: version,
36+
runcfeatures.AnnotationRuncVersion: context.App.Version,
3737
runcfeatures.AnnotationRuncCommit: gitCommit,
3838
runcfeatures.AnnotationRuncCheckpointEnabled: "true",
3939
},

0 commit comments

Comments
 (0)