#1068·yaml

panic in omitzero

Author: nikolaydubinaCreated Feb 16, 2025Updated Mar 12, 2025
bash
$ go version
go version go1.24.0 darwin/arm64
panic: unsupported flag "omitzero" in tag "client_cache_control,omitzero" of type repository.CloudStorageImageRepositoryConfig [recovered]
        panic: unsupported flag "omitzero" in tag "client_cache_control,omitzero" of type repository.CloudStorageImageRepositoryConfig

goroutine 1 [running]:
gopkg.in/yaml%2ev3.handleErr(0xc00017e7e8)
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/yaml.go:294 +0x68
panic({0x1a16200?, 0xc000298170?})
        /opt/hostedtoolcache/go/1.24.0/x64/src/runtime/panic.go:787 +0x132
gopkg.in/yaml%2ev3.(*decoder).mappingStruct(0xc0003d8690, 0xc0006a39a0, {0x1dabce0?, 0xc000191c88?, 0x4712bc?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:881 +0x10e5
gopkg.in/yaml%2ev3.(*decoder).mapping(0xc0003d8690, 0xc0006a39a0, {0x1dabce0?, 0xc000191c88?, 0x1955c60?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:786 +0xa5
gopkg.in/yaml%2ev3.(*decoder).unmarshal(0xc0003d8690, 0xc0006a39a0, {0x1dabce0?, 0xc000191c88?, 0x198?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:510 +0x3ea
gopkg.in/yaml%2ev3.(*decoder).mappingStruct(0xc0003d8690, 0xc0006a34a0, {0x1baa420?, 0xc000191c70?, 0x4712bc?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:935 +0xf9b
gopkg.in/yaml%2ev3.(*decoder).mapping(0xc0003d8690, 0xc0006a34a0, {0x1baa420?, 0xc000191c70?, 0x1955c60?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:786 +0xa5
gopkg.in/yaml%2ev3.(*decoder).unmarshal(0xc0003d8690, 0xc0006a34a0, {0x1baa420?, 0xc000191c70?, 0x78?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:510 +0x3ea
gopkg.in/yaml%2ev3.(*decoder).mappingStruct(0xc0003d8690, 0xc00042d680, {0x1e69b60?, 0xc000191c08?, 0x4712bc?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:935 +0xf9b
gopkg.in/yaml%2ev3.(*decoder).mapping(0xc0003d8690, 0xc00042d680, {0x1e69b60?, 0xc000191c08?, 0xc000092a08?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:786 +0xa5
gopkg.in/yaml%2ev3.(*decoder).unmarshal(0xc0003d8690, 0xc00042d680, {0x1e69b60?, 0xc000191c08?, 0x152a325?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:510 +0x3ea
gopkg.in/yaml%2ev3.(*decoder).document(...)
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:527
gopkg.in/yaml%2ev3.(*decoder).unmarshal(0xc0003d8690, 0xc00042d5e0, {0x1e69b60?, 0xc000191c08?, 0x10?})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/decode.go:498 +0x285
gopkg.in/yaml%2ev3.(*Decoder).Decode(0xc000472320, {0x18eda20, 0xc000191c08})
        /home/runner/go/pkg/mod/gopkg.in/[email protected]/yaml.go:131 +0x1d1
github.com/ndx-technologies/mm-go/fsx.FromYAML[...]({_, _})
        /home/runner/work/mm-go/mm-go/fsx/yaml.go:16 +0xd4
main.main()
        /home/runner/work/mm-go/mm-go/product/cmd/admin-service-http/main.go:38 +0x85