Unhelpful error message when there is a big list with duplicates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
When there are duplicates in a list in the yaml that must be unique, the error message is not helpful to find the culprits:
Issues while validating snapcraft.yaml: The 'build-packages' property does not match the required schema: ['git', 'build-essential', 'cmake', 'flex', 'bison', 'pyqt5-dev', 'qttools5-dev', 'qtpositioning5
Steps to reproduce:
$ snapcraft init
add to duplicate packages to build-packages.
$ snapcraft
The error message should mention the duplicate entries, so they can be easily removed.