Skip to content

Commit

Permalink
cfg: allow unknown fields in the yaml config
Browse files Browse the repository at this point in the history
This enables to define maps that are not part of the configuration
format but can be used for anchors.
  • Loading branch information
fho committed Feb 16, 2024
1 parent 1b73c71 commit cd9636f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/cfg/cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type Config struct {
func Unmarshal(r io.Reader) (_ *Config, err error) {
var result Config
dec := yaml.NewDecoder(r)
dec.KnownFields(true)

defer func() {
// sadly Decode panics on some formatting issues in the input,
Expand Down

0 comments on commit cd9636f

Please # to comment.