Skip to content

Releases: canonical/snapcraft

7.2.8

28 Nov 15:26
7.2.8
06ca484
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.2.7...7.2.8

7.2.7

04 Nov 12:57
7.2.7
3a1ed84
Compare
Choose a tag to compare

What's Changed

  • snap config: catch more errors when config cannot be retrieved by @mr-cal in #3974

Full Changelog: 7.2.6...7.2.7

7.2.6

04 Nov 12:56
7.2.6
1aec6c8
Compare
Choose a tag to compare

What's Changed

  • snap config: do not crash when config cannot be retrieved by @mr-cal in #3971

Full Changelog: 7.2.5...7.2.6

7.2.5

02 Nov 08:45
7.2.5
6122e30
Compare
Choose a tag to compare

What's Changed

  • Setup snapd for snapcraft_legacy providers by @mr-cal in #3962

Full Changelog: 7.2.4...7.2.5

7.2.4

02 Nov 08:44
7.2.4
f378ec3
Compare
Choose a tag to compare

What's Changed

  • ua: do not re-enable enabled services by @mr-cal in #3960
  • ua: do not re-enable enabled services for snapcraft_legacy by @mr-cal in #3961
  • requirements: update craft-providers to v1.6.1 by @mr-cal in #3969

Full Changelog: 7.2.3...7.2.4

7.2.3

26 Oct 15:15
7.2.3
2d09913
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.2.2...7.2.3

7.2.2

26 Oct 15:14
7.2.2
44e7644
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.2.1...7.2.2

7.2.1

20 Oct 23:22
7.2.1
848d7c8
Compare
Choose a tag to compare

What's Changed

  • legacy/plugins: improve nil plugin docstring by @cmatsuoka in #3949
  • providers: capture logs with debug-level logging by @mr-cal in #3950

Full Changelog: 7.2.0...7.2.1

7.2.0

12 Oct 00:59
7.2.0
2a0ce7c
Compare
Choose a tag to compare

Snapcraft 7.2.0

Snap Linting

This feature is applicable for those using core22 as a base. The resulting snap is now linted with messages to help out with resolving the issue.

Linters

classic

This is mostly a rework of the mix of behavior with classic confinement that automatically patched binaries, welcomed by some, fraught by others, to a more indicative message of what needs to happen for a snap to work properly in classic.

Output from this linter will look as follows:

Running linter: classic
Lint OK:
- classic: Snap confinement is set to classic.
Lint warnings:
- classic: usr/bin/toilet: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/bin/toilet: ELF rpath should be set to '$ORIGIN/../lib/x86_64-linux-gnu:/snap/core22/current/lib/x86_64-linux-gnu'.
- classic: usr/lib/x86_64-linux-gnu/caca/libgl_plugin.so.0.0.0: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/lib/x86_64-linux-gnu/caca/libgl_plugin.so.0.0.0: ELF rpath should be set to '$ORIGIN/..:/snap/core22/current/lib/x86_64-linux-gnu'.
- classic: usr/lib/x86_64-linux-gnu/caca/libx11_plugin.so.0.0.0: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/lib/x86_64-linux-gnu/caca/libx11_plugin.so.0.0.0: ELF rpath should be set to '$ORIGIN/..:/snap/core22/current/lib/x86_64-linux-gnu'.
- classic: usr/lib/x86_64-linux-gnu/libcaca++.so.0.99.19: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/lib/x86_64-linux-gnu/libcaca++.so.0.99.19: ELF rpath should be set to '$ORIGIN:/snap/core22/current/lib/x86_64-linux-gnu'.
- classic: usr/lib/x86_64-linux-gnu/libcaca.so.0.99.19: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/lib/x86_64-linux-gnu/libcaca.so.0.99.19: ELF rpath should be set to '$ORIGIN:/snap/core22/current/lib/x86_64-linux-gnu'.
- classic: usr/lib/x86_64-linux-gnu/libslang.so.2.3.2: ELF interpreter should be set to '/snap/core22/current/lib64/ld-linux-x86-64.so.2'.
- classic: usr/lib/x86_64-linux-gnu/libslang.so.2.3.2: ELF rpath should be set to '/snap/core22/current/lib/x86_64-linux-gnu'.

library

This linter reports missing library dependencies.

The output looks as follows:

Running linter: library
Lint warnings:
- library: my-app: missing dependency 'libcaca.so.0'.
- library: my-app: missing dependency 'libslang.so.2'.

Future iterations of this linter will warn of unused libraries too.

Disabling

Linting can be disabled per lint type or for a specific file path.

To completely disable a linter type, set the following at the root of your snapcraft.yaml:

lint:
  ignore:
    - library

To disable linting for a specific file path for a linter, set the following at the root of your snapcraft.yaml:

lint:
  ignore:
    - classic:
	    - usr/lib/x86_64-linux-gnu/libcaca.so.0.99.19

Switching the default provider

Linux 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

Store

Validation Sets

Incorrecly YAML formated Validation Sets or those not completely accepted by the store can now be interactively edited for further iteration

asciicast

On Prem Store

Supported commands are:

  • upload
  • release
  • list-revisions
  • close
  • status
  • login
  • export-login
  • logout
  • whoami

To work with a deployed on premises store, the following must be set:

  • STORE_DASHBOARD_URL=http[s]://<store-IP>/publishergw
  • STORE_UPLOAD_URL=http[s]://<store-IP>
  • SNAPCRAFT_STORE_AUTH=onprem

Credentials Format

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.

All changes

Read more

7.1.4

01 Sep 19:29
7.1.4
725d393
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.1.3...7.1.4