aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgen/specgen.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2022-08-25 01:25:08 +0200
committerMiloslav Trmač <mitr@redhat.com>2022-08-25 01:52:59 +0200
commit61fe95bb4fa7b6f83cd2a013877664db90cd773b (patch)
tree3db81aa08c21a713fec817dbcf5751374680e119 /pkg/specgen/specgen.go
parentad0c785f8e0846112b301872ffc8a7ea276c82a5 (diff)
downloadpodman-61fe95bb4fa7b6f83cd2a013877664db90cd773b.tar.gz
podman-61fe95bb4fa7b6f83cd2a013877664db90cd773b.tar.bz2
podman-61fe95bb4fa7b6f83cd2a013877664db90cd773b.zip
Preserve all unknown PolicyRequirement fields on (podman image trust set)
We are unmarshaling and re-marshaling JSON, which can _silently_ drop data with the Go design decision.data. Try harder, by using json.RawMessage at least for the data we care about. Alternatively, this could use json.Decoder.DisallowUnknownFields. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/specgen/specgen.go')
0 files changed, 0 insertions, 0 deletions