From 7e58331c969abd00999dd2d316ab63784aeedc39 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 17 Jun 2025 18:08:24 -0700 Subject: [PATCH] Remove annotations from Resources This results in different JSON than the older version: Before commit fd4995c: "cgroups": { ... "devices": [ ... After: "cgroups": { ... "Resources": { "devices": [ This breaks backward compatibility for runc. Fixes: fd4995c ("Add omitempty JSON attribute for some fields") Signed-off-by: Kir Kolyshkin --- config_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_linux.go b/config_linux.go index 9f1d445..9bc58a3 100644 --- a/config_linux.go +++ b/config_linux.go @@ -29,7 +29,7 @@ type Cgroup struct { ScopePrefix string `json:"scope_prefix,omitempty"` // Resources contains various cgroups settings to apply. - *Resources `json:"Resources,omitempty"` + *Resources // Systemd tells if systemd should be used to manage cgroups. Systemd bool `json:"Systemd,omitempty"`