hidraw plug makes review-tools unhappy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
review-tools |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi, we have a snap with a plug like so:
plugs:
hidraw-
interface: hidraw
usb-vendor: 8000
usb-product: 30
path: /dev/hidraw-
(I changed the actual values slightly for confidentiality reasons)
Samuele confirmed the plug declaration should be supported. ifacetools says the snap is installable on a device and this does auto-connect, but review-tools (20230314-0123UTC) says:
declaration malformed (attribute 'path' wrong for 'plugs') declaration-
unknown attribute 'path' for interface 'hidraw' (plugs) lint-snap-
unknown attribute 'usb-product' for interface 'hidraw' (plugs) lint-snap-
unknown attribute 'usb-vendor' for interface 'hidraw' (plugs) lint-snap-
hidraw only supports these attributes on the slot side, not the plug - see https:/ /github. com/snapcore/ snapd/blob/ master/ interfaces/ builtin/ hidraw. go#L76 - so review-tools is doing the right thing from what I can see.