Release notes: Snapcraft 6.1

The team behind Snapcraft is pleased to announce the release of Snapcraft 6.1.

Among its many updates, fixes and additions, the following are what we consider its highlights:

  • Git sources can now configure how sub-modules are fetched
  • Plugin updates to NPM, Autotools, Gradle and ROS2
  • LZO compression by default for the KDE extension

For general details, including installation instructions, see Snapcraft overview, or take a look at Snapcraft release notes for other Snapcraft releases.


Git Sources

  • sources: make submodule fetching configurable by @mr-cal in #3629

More fine grained source fetching, three new scenarios are supported:

  1. fetching only listed submodules, in the defined source-submodules
parts:
  git-test:
    plugin: dump
    source-type: git
    source: git@github.com...
    source-submodules:
      - submodule_1
      - dir1/submodule_2
  1. excluding all submodules with an empty list
parts:
  git-test:
    plugin: dump
    source-type: git
    source: git@github.com...
    source-submodules: []
  1. not defined (the default), all submodules are fetched

Plugins

NPM plugin

  • npm plugin: allow running as root by @om26er in #3624
  • npm plugin: extract node archive without preserving ownership by @om26er in #3625

Autotools

  • Autotools Plugin (v1): Fix fatal crash when running autogen.sh or bootstrap by @diddledani in #3628

Gradle

  • feat: add support for JDK 17 in the Gradle plugin by @lupino3 in #3661

ROS

Extensions

KDE

Command Line Interface

  • dependencies: missing library resolution by @mr-cal in #3634
  • cli: reintroduce remote-build and promote to snapcraft help by @aritra24 in #3648

Since the /usr merge with / the potentially missing stage-packages to add and solve missing dependencies was not working correctly on core20, this has now been fixed

The two command line client commands that were previously hidden, promote and remote-build, are now displayed as part of the general help.

core22 parts lifecycle opt-in for core20

To make use of this feature, something like this is needed

parts:
    part1:
        source: ....
        plugin: make
        build-attributes: [core22-step-dependencies]

Schema

  • schema: add support for activates-on app property to schema by @jhenstridge in #3425

Other fixes

New Contributors


Last updated 1 year, 11 months ago.