From cd0d0032630f8cd73cca0828788a1d717c2bc47f Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 22 Jan 2026 09:50:06 -0500 Subject: [PATCH] Run: don't try to encode SystemContext with json Don't expect to be able to encode a SystemContext as JSON, because it will trigger an encoding error if fields which can't be encoded are set. Signed-off-by: Nalin Dahyabhai --- run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.go b/run.go index 9ab6a7b0d..4f20f9c1b 100644 --- a/run.go +++ b/run.go @@ -177,7 +177,7 @@ type RunOptions struct { // unmounted if Run() returned an error ExternalImageMounts []string // System context of current build - SystemContext *types.SystemContext + SystemContext *types.SystemContext `json:"-"` // CgroupManager to use for running OCI containers CgroupManager string // CDIConfigDir is the location of CDI configuration files, if the files in