The team behind Snapcraft is pleased to announce the release of Snapcraft 7.2.0, a major update to the tool used to build snap packages.
Among the many any other updates, fixes and additions, the following are what we consider its highlights:
core22
baseFor general details, including installation instructions, see Snapcraft overview, or take a look at Snapcraft release notes for other Snapcraft releases.
Snapcraft now includes its own linter functionality when working with snaps using the core22
base. Snapcraft linters run automatically when a snap is packed, and will report any detected errors unless otherwise disabled.
The following two linters are currently supported:
classic
: verifies binary file parameters for snaps using classic confinement
library
: verifies that no ELF file dependencies, such as libraries, are missingLinux users of Snapcraft can now switch the default provider (LXD) to Multipass. Do to so, run:
snap set snapcraft provider=multipass
To go back to LXD, run:
snap set snapcraft provider=lxd
See Build providers for more details.
Incorrectly formatted YAML for Validation Sets, or those not completely accepted by the store, can now be interactively edited for further iteration:
Supported commands are:
To work with a deployed on premises store, the following must be set:
STORE_DASHBOARD_URL=http[s]://<store-IP>/publisher
STORE_UPLOAD_URL=http[s]://<store-IP>
SNAPCRAFT_STORE_AUTH=onprem
Snapcraft 7.2 now outputs a new standard (to the tools that require it) export login. This format is usable by Ubuntu Image and snapd.
Existing exported credentials remain compatible, however these newly exported tokens are not backwards compatible with versions lower than Snapcraft 7.2.0
The following is the complete list of features and issues worked on for 7.2.0. See The Snapcraft 7.2.0 GitHub release for further details.
get_instance_name()
to providers.py by @mr-cal in #3926
get_command_environment()
to providers.py by @mr-cal in #3927
launched_environment()
by @mr-cal in #3932
capture_logs_from_instance()
by @mr-cal in #3935
capture_logs_from_instance()
by @mr-cal in #3937
confirm_with_user()
call to providers.py (#91) by @mr-cal in #3938
get_provider()
to providers.py by @mr-cal in #3940
Last updated 2 years ago.