custom-device interface: 'files' is not 'list' lint-snap-v2_slots_attributes

Bug #1991963 reported by Alex Lewontin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
review-tools
Fix Released
Undecided
Unassigned

Bug Description

For the following snippet of snap.yaml:

  mycustomdevice:
    interface: custom-device
    custom-device: mycustomdevice
    devices: [ /dev/my-custom-device ]
    files:
      write:
        - /etc/foo
        - /etc/bar

upload to the store fails with the message

 'files' is not 'list' lint-snap-v2_slots_attributes (mycustomdevice, files)

Per snapd source, it looks like 'files' should not be a list, but rather a dict with keys 'read' and 'write', each of which should be a list.

Related branches

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

Thanks - I have merged the MR, tagged a new release (https://git.launchpad.net/review-tools/tag/?h=20221010-0140UTC) and asked the snap store team to update to this new version.

Changed in review-tools:
status: New → 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.