@@ -236,13 +236,13 @@ func (c *complianceTester) validateLinuxProcess(spec *rspec.Spec) error {
236236
237237 args := bytes .Split (bytes .Trim (cmdlineBytes , "\x00 " ), []byte ("\x00 " ))
238238 c .harness .Ok (len (args ) == len (spec .Process .Args ), "has expected number of process arguments" )
239- _ = c .harness .YAML (map [string ]interface {} {
239+ _ = c .harness .YAML (map [string ]any {
240240 "expected" : spec .Process .Args ,
241241 "actual" : args ,
242242 })
243243 for i , a := range args {
244244 c .harness .Ok (string (a ) == spec .Process .Args [i ], fmt .Sprintf ("has expected process argument %d" , i ))
245- _ = c .harness .YAML (map [string ]interface {} {
245+ _ = c .harness .YAML (map [string ]any {
246246 "index" : i ,
247247 "expected" : spec .Process .Args [i ],
248248 "actual" : string (a ),
@@ -362,7 +362,7 @@ func (c *complianceTester) validateRlimits(spec *rspec.Spec) error {
362362 if err != nil {
363363 return err
364364 }
365- _ = c .harness .YAML (map [string ]interface {} {
365+ _ = c .harness .YAML (map [string ]any {
366366 "level" : rfcError .Level .String (),
367367 "reference" : rfcError .Reference ,
368368 "type" : r .Type ,
@@ -374,7 +374,7 @@ func (c *complianceTester) validateRlimits(spec *rspec.Spec) error {
374374 if err != nil {
375375 return err
376376 }
377- _ = c .harness .YAML (map [string ]interface {} {
377+ _ = c .harness .YAML (map [string ]any {
378378 "level" : rfcError .Level .String (),
379379 "reference" : rfcError .Reference ,
380380 "type" : r .Type ,
@@ -727,7 +727,7 @@ func (c *complianceTester) validateDevice(device *rspec.LinuxDevice, condition s
727727 if err != nil {
728728 return err
729729 }
730- _ = c .harness .YAML (map [string ]interface {} {
730+ _ = c .harness .YAML (map [string ]any {
731731 "level" : rfcError .Level .String (),
732732 "reference" : rfcError .Reference ,
733733 "path" : device .Path ,
@@ -738,7 +738,7 @@ func (c *complianceTester) validateDevice(device *rspec.LinuxDevice, condition s
738738 if err != nil {
739739 return err
740740 }
741- _ = c .harness .YAML (map [string ]interface {} {
741+ _ = c .harness .YAML (map [string ]any {
742742 "level" : rfcError .Level .String (),
743743 "reference" : rfcError .Reference ,
744744 "path" : device .Path ,
@@ -756,7 +756,7 @@ func (c *complianceTester) validateDevice(device *rspec.LinuxDevice, condition s
756756 if err != nil {
757757 return err
758758 }
759- _ = c .harness .YAML (map [string ]interface {} {
759+ _ = c .harness .YAML (map [string ]any {
760760 "level" : rfcError .Level .String (),
761761 "reference" : rfcError .Reference ,
762762 "path" : device .Path ,
@@ -777,7 +777,7 @@ func (c *complianceTester) validateDevice(device *rspec.LinuxDevice, condition s
777777 if err != nil {
778778 return err
779779 }
780- _ = c .harness .YAML (map [string ]interface {} {
780+ _ = c .harness .YAML (map [string ]any {
781781 "level" : rfcError .Level .String (),
782782 "reference" : rfcError .Reference ,
783783 "path" : device .Path ,
@@ -793,7 +793,7 @@ func (c *complianceTester) validateDevice(device *rspec.LinuxDevice, condition s
793793 if err != nil {
794794 return err
795795 }
796- _ = c .harness .YAML (map [string ]interface {} {
796+ _ = c .harness .YAML (map [string ]any {
797797 "level" : rfcError .Level .String (),
798798 "reference" : rfcError .Reference ,
799799 "path" : device .Path ,
@@ -838,7 +838,7 @@ func (c *complianceTester) validateDefaultSymlinks(spec *rspec.Spec) error {
838838 if err != nil {
839839 return err
840840 }
841- _ = c .harness .YAML (map [string ]interface {} {
841+ _ = c .harness .YAML (map [string ]any {
842842 "level" : rfcError .Level .String (),
843843 "reference" : rfcError .Reference ,
844844 "path" : symlink ,
@@ -991,7 +991,7 @@ func (c *complianceTester) validateOOMScoreAdj(spec *rspec.Spec) error {
991991 if err != nil {
992992 return err
993993 }
994- _ = c .harness .YAML (map [string ]interface {} {
994+ _ = c .harness .YAML (map [string ]any {
995995 "level" : rfcError .Level .String (),
996996 "reference" : rfcError .Reference ,
997997 "expected" : expected ,
@@ -1052,7 +1052,7 @@ func (c *complianceTester) validateIDMappings(mappings []rspec.LinuxIDMapping, p
10521052 return err
10531053 }
10541054 c .harness .Ok (len (idMaps ) == len (mappings ), fmt .Sprintf ("%s has expected number of mappings" , path ))
1055- _ = c .harness .YAML (map [string ]interface {} {
1055+ _ = c .harness .YAML (map [string ]any {
10561056 "expected" : mappings ,
10571057 "actual" : idMaps ,
10581058 })
@@ -1185,13 +1185,13 @@ func (c *complianceTester) validatePosixMounts(spec *rspec.Spec) error {
11851185 } else {
11861186 rfcError , err = c .Ok (foundInOrder , specerror .MountsInOrder , spec .Version , fmt .Sprintf ("mounts[%d] (%s) found in order" , i , configMount .Destination ))
11871187 }
1188- _ = c .harness .YAML (map [string ]interface {} {
1188+ _ = c .harness .YAML (map [string ]any {
11891189 "level" : rfcError .Level .String (),
11901190 "reference" : rfcError .Reference ,
11911191 "config" : configMount ,
11921192 "indexConfig" : i ,
11931193 "indexSystem" : configSys [i ],
1194- "earlier" : map [string ]interface {} {
1194+ "earlier" : map [string ]any {
11951195 "config" : spec .Mounts [highestMatchedConfig ],
11961196 "indexConfig" : highestMatchedConfig ,
11971197 "indexSystem" : configSys [highestMatchedConfig ],
0 commit comments