What is wrong with this snapcraft.yaml file?

I try to create my first snap and I failed with this. However to my mind and knowledge it shoudl be works. I study over one week different pages with verious snap descriptions, I also study many examples. But I have no idea why my snap is not build!
My snap is as follow. Error message is below:

name: backup
version: '0.1'
summary: Simple backup daemon
description: |
    Simple backup daemon.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

        command: bin/backup

        plugin: nil
            - p7zip

        plugin: qmake
        source: https://github.com/iamantony/qtcsv/archive/v1.4.1.zip
        plugin: qmake
        source: ../Src

Error message:
Issues while validating snapcraft.yaml: The 'parts' property does not match the required schema: '7z' is not a valid part name. Part names consist of lower-case alphanumeric characters, hyphens, plus signs, and forward slashes. As a special case, 'plugins' is also not a valid part name.

thanks and best regards
Szyk Cech

Try changing the name to something that doesn’t start with a number, like p7zip - the schema probably requires the first character to be a letter, but the schema error does not convey that. Sounds like a bug you could file here.

Also note QtSvg won’t be valid either, just lowercase letters are allowed - according to the error at least.


You were right! The problem was with: QtCsv: part (upercase letters).

1 Like