Skip to content

Commit

Permalink
warn user version is obsolete (#575)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof authored Mar 4, 2024
1 parent bec8ddd commit be0297a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ func loadYamlModel(ctx context.Context, config types.ConfigDetails, opts *Option
}
}

if _, ok := dict["version"]; ok {
logrus.Warning("`version` is obsolete")
delete(dict, "version")
}

dict, err = transform.Canonical(dict)
if err != nil {
return nil, err
Expand Down

0 comments on commit be0297a

Please sign in to comment.