We have compiled (copy/pasted) package licenses into the repository. This means that the licenses may be stale if changed from the time they were copied into the repo
The license field for the snap is missing in snapcraft.yaml
Our snap's versions are similar to 8.0.33-0 instead of 8.0.33
We need sudo to run charmed-mysql.mysqlsh because the script for mysqlsh uses setpriv
Solution
Organize licenses/copyright files during stage from the installed package docs to $SNAP/licenses
Add the license field with value Apache-2.0
Change versions to strings similar to 8.0.33
Create a snapcraft forum post asking how to run the application as the snap_daemon user
Issue
8.0.33-0
instead of8.0.33
sudo
to runcharmed-mysql.mysqlsh
because the script for mysqlsh usessetpriv
Solution
$SNAP/licenses
Apache-2.0
8.0.33
snap_daemon
user