Snapcraft 5.0 is a milestone release that marks the end of a significant development cycle while adding several new and important features, including:
For general details, including installation instructions, see Snapcraft overview, or take a look at Snapcraft release notes for other Snapcraft releases.
The snapcraft metrics
command can be used to track installation and usage statistics for snaps published with your developer account.
For further details, see Snapcraft metrics.
You can now add user-friendly bespoke links, such as a donation URL, a contact link, or for filing issues, to a snap’s snapcraft.yaml.
These links are translated into a more wire protocol friendly syntax for snap.yaml
which can then be consumed by the Snap Store to enhance your snap’s listing.
See Snapcraft.yaml reference for further details.
For a long time, since the creation of base snaps, Snapcraft has maintained two code bases inside the same product - when no base was detected, Snapcraft would re-execute itself into the old code base.
The absence of a base in snapcraft.yaml
triggered this behaviour for backwards compatibility, and this absence essentially meant building for an Ubuntu 16.04 target.
Ubuntu 16.04 is now in its ESM phase, and it’s support has been dropped from Snapcraft 5+. Publishers needing continued support for base: core
can now use Snapcraft’s 4.x track which maintains the old Ubuntu 16.04 compatible code base.
See Snapcraft and Extended Security Maintenance for more details.
Special thanks to the contributors that made this release happen: @3v1n0, @Blacksmoke16, @artivis, @cjp256, @cmatsuoka, @jriddell, @kyrofa and @sergiusens.
Last updated 3 years ago.