1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00

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 <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2026-01-22 09:50:06 -05:00
parent 93b1a4f635
commit cd0d003263

2
run.go
View File

@@ -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