diff --git a/internal/osbuild/assembler_test.go b/internal/osbuild/assembler_test.go index ffef02565..fd05ea10b 100644 --- a/internal/osbuild/assembler_test.go +++ b/internal/osbuild/assembler_test.go @@ -18,7 +18,7 @@ func TestAssembler_UnmarshalJSON(t *testing.T) { { // invalid JSON - note the missing brace at the end of the string name: "invalid json", - data: []byte(`{"name":"org.osbuild.tar","options":{"filename":"",size:0}`), + data: []byte(`{"name":"org.osbuild.tar","options":{"filename":""}`), errorExpected: true, }, { @@ -75,7 +75,7 @@ func TestAssembler_UnmarshalJSON(t *testing.T) { Name: "org.osbuild.tar", Options: &TarAssemblerOptions{}, }, - data: []byte(`{"name":"org.osbuild.tar","options":{"filename":"","size":0}}`), + data: []byte(`{"name":"org.osbuild.tar","options":{"filename":""}}`), }, { name: "tar assembler full", @@ -83,11 +83,10 @@ func TestAssembler_UnmarshalJSON(t *testing.T) { Name: "org.osbuild.tar", Options: &TarAssemblerOptions{ Filename: "root.tar.xz", - Size: 0, Compression: "xz", }, }, - data: []byte(`{"name":"org.osbuild.tar","options":{"filename":"root.tar.xz","size":0,"compression":"xz"}}`), + data: []byte(`{"name":"org.osbuild.tar","options":{"filename":"root.tar.xz","compression":"xz"}}`), }, { name: "rawfs assembler empty", diff --git a/internal/osbuild/tar_assembler.go b/internal/osbuild/tar_assembler.go index b2a16889a..527185dd0 100644 --- a/internal/osbuild/tar_assembler.go +++ b/internal/osbuild/tar_assembler.go @@ -6,7 +6,6 @@ package osbuild // compression type, and stores the output with the given filename. type TarAssemblerOptions struct { Filename string `json:"filename"` - Size uint64 `json:"size"` Compression string `json:"compression,omitempty"` }