cannot compile personal-files/system-files snap declaration constraints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I was trying to add the following to icdiff's (https:/
{
"personal-files": {
"allow-
"allow-
"
"read": [
]
}
}
}
}
but it fails with:
could not sign assertion (assertion snap-declaration: cannot compile plug-attributes in allow-installation in plug rule for interface "personal-files": cannot compile "read/alt#1/" constraint "$HOME/.gitconfig": not a valid $SLOT()/$PLUG() constraint)
IIUC, it is having trouble because it doesn't expect 'read' to be of type 'list'. This is new with personal-files and system-files since they are the first interfaces to have an attribute that is a list. Please update the compiler to support lists of strings for plug-attributes and slot-attributes.
Thanks!
PS - the review-tools currently handle lists correctly
Changed in snapstore: | |
status: | New → Invalid |
FYI, the personal-files and system-files interfaces are highly anticipated in snapd 2.37.1 and we already have several requests coming in to use them and this snap declaration is required to scope the use of the interface. Please consider this when determining priority.