snap try: The quick way to package snapsFri, Jul 1, 2016
This weeks snippet is all to do with improving the snap developer experience.
Since the release of snapd 2.0.8 we have added one of the most useful tools for snap developers:
What this does is effectively mounts any folder containing an unpackaged snap at
/snap/snapname as a writeable folder allowing quick iteration during the packaging process. No longer do you have to create a read-only squashfs snap and install it to try out your latest changes and this speeds up the workflow tremendously. The process I use from the package directory is:
% snapcraft prime % snap try prime % /snap/bin/snapname ... test/hack .... % snap remove
When you are happy with your testing you can create the real snap file with: