canonical / charmed-mysql-snap

SNAP for Charmed MySQL charm.
https://snapcraft.io/charmed-mysql
Apache License 2.0
0 stars 4 forks source link

DPE-2189 Miscellaneous updates to get snap ready for stable release #36

Closed shayancanonical closed 1 year ago

shayancanonical commented 1 year ago

Issue

  1. 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
  2. The license field for the snap is missing in snapcraft.yaml
  3. Our snap's versions are similar to 8.0.33-0 instead of 8.0.33
  4. We need sudo to run charmed-mysql.mysqlsh because the script for mysqlsh uses setpriv

Solution

  1. Organize licenses/copyright files during stage from the installed package docs to $SNAP/licenses
  2. Add the license field with value Apache-2.0
  3. Change versions to strings similar to 8.0.33
  4. Create a snapcraft forum post asking how to run the application as the snap_daemon user