Check for duplicated yaml keys

Bug #1942200 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
review-tools
Fix Released
Undecided
Unassigned

Bug Description

In YAML it is not allowed to have duplicated map keys like:
```
map:
 key:
 key:
```
But unfortunately py-yaml and go-yaml.v2 allow this and do not
warn or error. When moving to go-yaml.v3 we noticed this issue.

It is unclear if any real world snaps are affected by this but
we should make sure we at least to not get more.

Attached is a git formated patch with an initial implementation
for this.

Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Alex Murray (alexmurray) wrote :
Revision history for this message
Alex Murray (alexmurray) wrote :

This will be available in review-tools in the edge channel soon.

Changed in review-tools:
status: New → Fix Committed
Changed in review-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.